Skip to content

Commit a43a2f5

Browse files
committed
test: don't include output when nothing has been changed
1 parent 9264f4d commit a43a2f5

7 files changed

+240
-646
lines changed

tests/src/rule-tester.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import semver from 'semver';
44

55
export const usingFlatConfig = semver.major(eslintVersion) >= 9;
66

7+
export function withoutAutofixOutput(test) {
8+
return { ...test, output: usingFlatConfig ? null : test.code };
9+
}
10+
711
export class FlatCompatRuleTester {
812
constructor(testerConfig) {
913
this._tester = new RuleTester(FlatCompatRuleTester._flatCompat(testerConfig));

0 commit comments

Comments
 (0)