From 5429dabf8879b73fff7dfda98b51e33667b47cb8 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 12 Apr 2024 15:31:34 +1200 Subject: [PATCH] test: skip duplicate examples --- tests/src/rules/no-cycle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/rules/no-cycle.js b/tests/src/rules/no-cycle.js index d42706b4d1..6b78134b5b 100644 --- a/tests/src/rules/no-cycle.js +++ b/tests/src/rules/no-cycle.js @@ -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(); @@ -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: '',