Skip to content

Commit

Permalink
[Tests] handle eslint v8.8 adding suppressedMessages property
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 28, 2022
1 parent ad18a62 commit 128d505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/cli.js
Expand Up @@ -104,6 +104,9 @@ describe('CLI regression tests', function () {
fixableErrorCount: 0,
fixableWarningCount: 0,
source: results[0].source, // NewLine-characters might differ depending on git-settings
...(semver.satisfies(eslintPkg.version, '>= 8.8') && {
suppressedMessages: [],
}),
usedDeprecatedRules: results[0].usedDeprecatedRules, // we don't care about this one
},
],
Expand Down

0 comments on commit 128d505

Please sign in to comment.