Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandemic1617 committed Nov 7, 2023
1 parent ece5a9d commit a20e5b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/rules/no-extraneous-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,18 @@ describe('TypeScript', () => {
options: [{ packageDir: packageDirWithTypescriptDevDependencies, devDependencies: false }],
...parserConfig,
}),

test({
code: 'import type { T } from "a"; export type { T };',
options: [{ packageDir: packageDirWithTypescriptDevDependencies, devDependencies: false }],
...parserConfig,
}),

test({
code: 'export type { T } from "a";',
options: [{ packageDir: packageDirWithTypescriptDevDependencies, devDependencies: false }],
...parserConfig,
}),
],
invalid: [
test({
Expand Down

0 comments on commit a20e5b8

Please sign in to comment.