Skip to content

Commit

Permalink
[Tests] no-unused-modules: enable flat config test
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Jul 27, 2023
1 parent df53572 commit 8f99224
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/rules/no-unused-modules.js
Expand Up @@ -1374,7 +1374,10 @@ describe('parser ignores prefixes like BOM and hashbang', () => {
});
});

describe('supports flat eslint', { skip: !FlatRuleTester }, () => {
describe('supports flat eslint', () => {
if (!FlatRuleTester) {
return this.skip();
}
const flatRuleTester = new FlatRuleTester();
flatRuleTester.run('no-unused-modules', rule, {
valid: [{
Expand Down

0 comments on commit 8f99224

Please sign in to comment.