Rename test files

pull/12914/head
Tobias Skarhed 7 years ago
parent e696dc4d5f
commit a65589a5fb
  1. 2
      .github/CONTRIBUTING.md
  2. 2
      jest.config.js
  3. 40
      karma.conf.js
  4. 0
      public/app/containers/AlertRuleList/AlertRuleList.test.tsx
  5. 0
      public/app/containers/AlertRuleList/__snapshots__/AlertRuleList.test.tsx.snap
  6. 0
      public/app/containers/Explore/PromQueryField.test.tsx
  7. 0
      public/app/containers/Explore/TimePicker.test.tsx
  8. 0
      public/app/containers/Explore/slate-plugins/braces.test.ts
  9. 0
      public/app/containers/Explore/slate-plugins/clear.test.ts
  10. 0
      public/app/containers/Explore/utils/prometheus.test.ts
  11. 0
      public/app/containers/ManageDashboards/FolderSettings.test.tsx
  12. 0
      public/app/containers/ServerStats/ServerStats.test.tsx
  13. 0
      public/app/containers/ServerStats/__snapshots__/ServerStats.test.tsx.snap
  14. 0
      public/app/core/components/DeleteButton/DeleteButton.test.tsx
  15. 0
      public/app/core/components/EmptyListCTA/EmptyListCTA.test.tsx
  16. 0
      public/app/core/components/EmptyListCTA/__snapshots__/EmptyListCTA.test.tsx.snap
  17. 0
      public/app/core/components/PageHeader/PageHeader.test.tsx
  18. 0
      public/app/core/components/Permissions/AddPermissions.test.tsx
  19. 0
      public/app/core/components/Picker/PickerOption.test.tsx
  20. 0
      public/app/core/components/Picker/TeamPicker.test.tsx
  21. 0
      public/app/core/components/Picker/UserPicker.test.tsx
  22. 0
      public/app/core/components/Picker/__snapshots__/PickerOption.test.tsx.snap
  23. 0
      public/app/core/components/Picker/__snapshots__/TeamPicker.test.tsx.snap
  24. 0
      public/app/core/components/Picker/__snapshots__/UserPicker.test.tsx.snap
  25. 0
      public/app/core/components/Tooltip/Popover.test.tsx
  26. 0
      public/app/core/components/Tooltip/Tooltip.test.tsx
  27. 0
      public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap
  28. 0
      public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap
  29. 0
      public/app/core/specs/ColorPalette.test.tsx
  30. 0
      public/app/core/specs/PasswordStrength.test.tsx
  31. 0
      public/app/core/specs/__snapshots__/ColorPalette.test.tsx.snap
  32. 0
      public/app/core/specs/backend_srv.test.ts
  33. 0
      public/app/core/specs/datemath.test.ts
  34. 0
      public/app/core/specs/emitter.test.ts
  35. 0
      public/app/core/specs/file_export.test.ts
  36. 0
      public/app/core/specs/flatten.test.ts
  37. 0
      public/app/core/specs/kbn.test.ts
  38. 0
      public/app/core/specs/location_util.test.ts
  39. 0
      public/app/core/specs/manage_dashboards.test.ts
  40. 0
      public/app/core/specs/org_switcher.test.ts
  41. 0
      public/app/core/specs/rangeutil.test.ts
  42. 0
      public/app/core/specs/search.test.ts
  43. 0
      public/app/core/specs/search_results.test.ts
  44. 0
      public/app/core/specs/search_srv.test.ts
  45. 0
      public/app/core/specs/store.test.ts
  46. 0
      public/app/core/specs/table_model.test.ts
  47. 0
      public/app/core/specs/ticks.test.ts
  48. 0
      public/app/core/specs/time_series.test.ts
  49. 0
      public/app/core/specs/value_select_dropdown.test.ts
  50. 0
      public/app/features/alerting/specs/threshold_mapper.test.ts
  51. 0
      public/app/features/annotations/specs/annotations_srv.test.ts
  52. 0
      public/app/features/annotations/specs/annotations_srv_specs.test.ts
  53. 0
      public/app/features/dashboard/specs/AddPanelPanel.test.tsx
  54. 0
      public/app/features/dashboard/specs/DashboardRow.test.tsx
  55. 0
      public/app/features/dashboard/specs/change_tracker.test.ts
  56. 0
      public/app/features/dashboard/specs/dashboard_import_ctrl.test.ts
  57. 0
      public/app/features/dashboard/specs/dashboard_migration.test.ts
  58. 0
      public/app/features/dashboard/specs/dashboard_model.test.ts
  59. 0
      public/app/features/dashboard/specs/exporter.test.ts
  60. 0
      public/app/features/dashboard/specs/history_ctrl.test.ts
  61. 0
      public/app/features/dashboard/specs/history_srv.test.ts
  62. 0
      public/app/features/dashboard/specs/repeat.test.ts
  63. 0
      public/app/features/dashboard/specs/save_as_modal.test.ts
  64. 0
      public/app/features/dashboard/specs/save_modal.test.ts
  65. 0
      public/app/features/dashboard/specs/save_provisioned_modal.test.ts
  66. 0
      public/app/features/dashboard/specs/time_srv.test.ts
  67. 0
      public/app/features/dashboard/specs/viewstate_srv.test.ts
  68. 0
      public/app/features/panel/specs/metrics_panel_ctrl.test.ts
  69. 0
      public/app/features/panellinks/specs/link_srv.test.ts
  70. 0
      public/app/features/playlist/specs/playlist_edit_ctrl.test.ts
  71. 0
      public/app/features/plugins/specs/datasource_srv.test.ts
  72. 0
      public/app/features/templating/specs/adhoc_variable.test.ts
  73. 0
      public/app/features/templating/specs/editor_ctrl.test.ts
  74. 0
      public/app/features/templating/specs/query_variable.test.ts
  75. 0
      public/app/features/templating/specs/template_srv.test.ts
  76. 0
      public/app/features/templating/specs/variable.test.ts
  77. 0
      public/app/features/templating/specs/variable_srv.test.ts
  78. 0
      public/app/features/templating/specs/variable_srv_init.test.ts
  79. 0
      public/app/plugins/datasource/cloudwatch/specs/datasource.test.ts
  80. 0
      public/app/plugins/datasource/elasticsearch/specs/datasource.test.ts
  81. 0
      public/app/plugins/datasource/elasticsearch/specs/elastic_response.test.ts
  82. 0
      public/app/plugins/datasource/elasticsearch/specs/index_pattern.test.ts
  83. 0
      public/app/plugins/datasource/elasticsearch/specs/query_builder.test.ts
  84. 0
      public/app/plugins/datasource/elasticsearch/specs/query_def.test.ts
  85. 0
      public/app/plugins/datasource/graphite/specs/datasource.test.ts
  86. 0
      public/app/plugins/datasource/graphite/specs/gfunc.test.ts
  87. 0
      public/app/plugins/datasource/graphite/specs/graphite_query.test.ts
  88. 0
      public/app/plugins/datasource/graphite/specs/lexer.test.ts
  89. 0
      public/app/plugins/datasource/graphite/specs/parser.test.ts
  90. 0
      public/app/plugins/datasource/graphite/specs/query_ctrl.test.ts
  91. 0
      public/app/plugins/datasource/influxdb/specs/influx_query.test.ts
  92. 0
      public/app/plugins/datasource/influxdb/specs/influx_series.test.ts
  93. 0
      public/app/plugins/datasource/influxdb/specs/query_builder.test.ts
  94. 0
      public/app/plugins/datasource/influxdb/specs/query_ctrl.test.ts
  95. 0
      public/app/plugins/datasource/influxdb/specs/query_part.test.ts
  96. 0
      public/app/plugins/datasource/influxdb/specs/response_parser.test.ts
  97. 0
      public/app/plugins/datasource/logging/datasource.test.ts
  98. 0
      public/app/plugins/datasource/logging/result_transformer.test.ts
  99. 0
      public/app/plugins/datasource/mssql/specs/datasource.test.ts
  100. 0
      public/app/plugins/datasource/mysql/specs/datasource.test.ts
  101. Some files were not shown because too many files have changed in this diff Show More

@ -7,7 +7,7 @@ grunt && grunt watch
### Rerun tests on source change
```
npm jest
npm run jest
```
or
```

@ -13,7 +13,7 @@ module.exports = {
"roots": [
"<rootDir>/public"
],
"testRegex": "(\\.|/)(jest)\\.(jsx?|tsx?)$",
"testRegex": "(\\.|/)(test)\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",

@ -1,40 +0,0 @@
var webpack = require('webpack');
var path = require('path');
var webpackTestConfig = require('./scripts/webpack/webpack.test.js');
module.exports = function(config) {
'use strict';
config.set({
frameworks: ['mocha', 'expect', 'sinon'],
// list of files / patterns to load in the browser
files: [
{ pattern: 'public/test/index.ts', watched: false }
],
preprocessors: {
'public/test/index.ts': ['webpack', 'sourcemap'],
},
webpack: webpackTestConfig,
webpackMiddleware: {
stats: 'minimal',
},
// list of files to exclude
exclude: [],
reporters: ['dots'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
captureTimeout: 20000,
singleRun: true,
// autoWatchBatchDelay: 1000,
// browserNoActivityTimeout: 60000,
});
};

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save