Skip to content

Commit e20db4e

Browse files
committedAug 1, 2021
[Tests] eslint v7.32 added a new fatalErrorCount property to cli.executeOnFiles result
1 parent 8dd13e8 commit e20db4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎tests/src/cli.js

+6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,18 @@ describe('CLI regression tests', function () {
6262
},
6363
],
6464
errorCount: 1,
65+
...(semver.satisfies(eslintPkg.version, '>= 7.32') && {
66+
fatalErrorCount: 0,
67+
}),
6568
warningCount: 0,
6669
fixableErrorCount: 0,
6770
fixableWarningCount: 0,
6871
source: results.results[0].source, // NewLine-characters might differ depending on git-settings
6972
},
7073
],
74+
...(semver.satisfies(eslintPkg.version, '>= 7.32') && {
75+
fatalErrorCount: 0,
76+
}),
7177
errorCount: 1,
7278
warningCount: 0,
7379
fixableErrorCount: 0,

0 commit comments

Comments
 (0)
Please sign in to comment.