Skip to content

Commit

Permalink
Include internal aliasing compatibility test for no-extraneous-depend…
Browse files Browse the repository at this point in the history
…encies
  • Loading branch information
ombene committed Dec 22, 2021
1 parent dd08c7f commit 69c767e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/src/rules/no-extraneous-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,23 @@ ruleTester.run('no-extraneous-dependencies', rule, {
`,
settings: { 'import/resolver': 'webpack' },
}),

test({
code: 'import "@custom-internal-alias/api/service";',
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
alias: {
'@custom-internal-alias': testFilePath('internal-modules'),
},
},
},
},
},
},
}),
],
invalid: [
test({
Expand Down

0 comments on commit 69c767e

Please sign in to comment.