Skip to content

Commit d145ac8

Browse files
committed
test: default to assuming source is a script rather than a module
1 parent 52d3c83 commit d145ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/src/rule-tester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function withoutAutofixOutput(test) {
99
}
1010

1111
export class FlatCompatRuleTester {
12-
constructor(testerConfig) {
12+
constructor(testerConfig = { parserOptions: { sourceType: 'script' } }) {
1313
this._tester = new RuleTester(FlatCompatRuleTester._flatCompat(testerConfig));
1414
}
1515

0 commit comments

Comments
 (0)