Skip to content

Commit c35d0c6

Browse files
authored
rename jasmine failFast -> stopOnSpecFailure (#10804)
1 parent f5cb133 commit c35d0c6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

karma.conf.cjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable global-require */
12
const jasmineSeedReporter = require('./test/seed-reporter.cjs');
23
const commonjs = require('@rollup/plugin-commonjs');
34
const istanbul = require('rollup-plugin-istanbul');
@@ -37,8 +38,10 @@ module.exports = async function(karma) {
3738
// https://github.com/pnpm/pnpm/issues/720#issuecomment-954120387
3839
const plugins = Object.keys(require('./package').devDependencies).flatMap(
3940
(packageName) => {
40-
if (!packageName.startsWith('karma-')) return []
41-
return [require(packageName)]
41+
if (!packageName.startsWith('karma-')) {
42+
return [];
43+
}
44+
return [require(packageName)];
4245
}
4346
);
4447

@@ -53,7 +56,7 @@ module.exports = async function(karma) {
5356

5457
client: {
5558
jasmine: {
56-
failFast: !!karma.autoWatch
59+
stopOnSpecFailure: !!karma.autoWatch
5760
}
5861
},
5962

0 commit comments

Comments
 (0)