Skip to content

Commit

Permalink
test: skip duplicate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 12, 2024
1 parent a99a391 commit f1e7cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/rules/no-cycle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parsers, test as _test, testFilePath, testVersion as _testVersion } from '../utils';

import { FlatCompatRuleTester as RuleTester } from '../rule-tester';
import { FlatCompatRuleTester as RuleTester, usingFlatConfig } from '../rule-tester';
import flatMap from 'array.prototype.flatmap';

const ruleTester = new RuleTester();
Expand Down Expand Up @@ -32,7 +32,7 @@ ruleTester.run('no-cycle', rule, {
test({ code: 'var foo = require("./")' }),
test({ code: 'var foo = require("@scope/foo")' }),
test({ code: 'var bar = require("./bar/index")' }),
test({ code: 'var bar = require("./bar")' }),
...usingFlatConfig ? [] : [test({ code: 'var bar = require("./bar")' })],
test({
code: 'var bar = require("./bar")',
filename: '<text>',
Expand Down

0 comments on commit f1e7cd2

Please sign in to comment.