Skip to content

Commit

Permalink
[Tests] no-extraneous-dependencies: add passing test case of webpac…
Browse files Browse the repository at this point in the history
…k loader syntax

Closes #1969
  • Loading branch information
ljharb committed Aug 21, 2021
1 parent 9485c83 commit 94d6739
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/rules/no-extraneous-dependencies.js
Expand Up @@ -160,7 +160,10 @@ ruleTester.run('no-extraneous-dependencies', rule, {
}),

test({
code: 'import "alias/esm-package/esm-module";',
code: `
import "alias/esm-package/esm-module";
import 'expose-loader?exposes[]=$&exposes[]=jQuery!jquery';
`,
settings: { 'import/resolver': 'webpack' },
}),
],
Expand Down

0 comments on commit 94d6739

Please sign in to comment.