Skip to content

Commit a20e5b8

Browse files
committed
added tests
1 parent ece5a9d commit a20e5b8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/src/rules/no-extraneous-dependencies.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,18 @@ describe('TypeScript', () => {
427427
options: [{ packageDir: packageDirWithTypescriptDevDependencies, devDependencies: false }],
428428
...parserConfig,
429429
}),
430+
431+
test({
432+
code: 'import type { T } from "a"; export type { T };',
433+
options: [{ packageDir: packageDirWithTypescriptDevDependencies, devDependencies: false }],
434+
...parserConfig,
435+
}),
436+
437+
test({
438+
code: 'export type { T } from "a";',
439+
options: [{ packageDir: packageDirWithTypescriptDevDependencies, devDependencies: false }],
440+
...parserConfig,
441+
}),
430442
],
431443
invalid: [
432444
test({

0 commit comments

Comments
 (0)