Skip to content

Commit

Permalink
Add type-only import test case for dependencyExtractor
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryDanielson authored Sep 16, 2024
1 parent bd1c6db commit 7c73be6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ describe('dependencyExtractor', () => {
// Bad
import typeof {foo} from 'inv1';
import type {foo} from 'inv2';
import {type foo, typeof bar} from 'inv3';
// Good
import {foo, typeof bar} from 'inv4';
import {type foo, bar} from 'inv5';
`;
expect(extractor.extract(code)).toEqual(new Set([]));
expect(extractor.extract(code)).toEqual(new Set(['inv4', 'inv5']));
});

it('should extract dependencies from `export` statements', () => {
Expand Down

0 comments on commit 7c73be6

Please sign in to comment.