From 934f59e31736812bb8c7349011c5e10159ec0f96 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 6 Sep 2024 13:27:26 +1200 Subject: [PATCH] test: remove some duplicates --- tests/src/rules/no-extraneous-dependencies.js | 11 ----------- tests/src/rules/no-unresolved.js | 9 --------- 2 files changed, 20 deletions(-) diff --git a/tests/src/rules/no-extraneous-dependencies.js b/tests/src/rules/no-extraneous-dependencies.js index 26b523644..b740f559b 100644 --- a/tests/src/rules/no-extraneous-dependencies.js +++ b/tests/src/rules/no-extraneous-dependencies.js @@ -43,11 +43,9 @@ ruleTester.run('no-extraneous-dependencies', rule, { test({ code: `export { foo } from "${pkg}"` }), test({ code: `export * from "${pkg}"` }), ]), - test({ code: 'import "eslint"' }), test({ code: 'import "eslint/lib/api"' }), test({ code: 'import "fs"' }), test({ code: 'import "./foo"' }), - test({ code: 'import "@org/package"' }), test({ code: 'import "electron"', settings: { 'import/core-modules': ['electron'] } }), test({ @@ -386,15 +384,6 @@ ruleTester.run('no-extraneous-dependencies', rule, { }], }), - test({ - code: 'import "not-a-dependency"', - filename: path.join(packageDirMonoRepoRoot, 'foo.js'), - options: [{ packageDir: packageDirMonoRepoRoot }], - errors: [{ - message: `'not-a-dependency' should be listed in the project's dependencies. Run 'npm i -S not-a-dependency' to add it`, - }], - }), - test({ code: 'import "esm-package-not-in-pkg-json/esm-module";', errors: [{ diff --git a/tests/src/rules/no-unresolved.js b/tests/src/rules/no-unresolved.js index 571bee801..16d996d7a 100644 --- a/tests/src/rules/no-unresolved.js +++ b/tests/src/rules/no-unresolved.js @@ -136,15 +136,6 @@ function runResolverTests(resolver) { ], }), - rest({ - code: "import bar from './baz';", - errors: [ - { - message: "Unable to resolve path to module './baz'.", - type: 'Literal', - }, - ], - }), rest({ code: "import bar from './baz';", errors: [