Skip to content

Commit

Permalink
chore: Add order reporter to catch flakey tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Mar 14, 2024
1 parent 0fc9ab8 commit a8ab94d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = (config) => {
require('karma-chrome-launcher'),
require('karma-coverage-istanbul-reporter'),
require('karma-spec-reporter'),
require('karma-jasmine-order-reporter'),
seedReporter,
timingReporter
],
Expand Down Expand Up @@ -152,7 +153,7 @@ module.exports = (config) => {
// i. e.
stats: 'normal'
},
reporters: ['progress', /*'spec'*/, 'coverage-istanbul','jasmine-seed', 'jasmine-slow'],
reporters: ['jasmine-order', 'progress', /*'spec'*/, 'coverage-istanbul','jasmine-seed', 'jasmine-slow'],
coverageReporter: {
reporters: [
{ type: 'html', dir: 'coverage/' },
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"karma-coverage": "2.2.1",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "5.1.0",
"karma-jasmine-order-reporter": "1.1.0",
"karma-spec-reporter": "0.0.36",
"karma-summary-reporter": "3.1.1",
"karma-webpack": "5.0.1",
Expand Down

0 comments on commit a8ab94d

Please sign in to comment.