diff --git a/packages/jest-haste-map/src/lib/__tests__/extract_requires.test.js b/packages/jest-haste-map/src/lib/__tests__/extract_requires.test.js index 6901af459941..b5508c676116 100644 --- a/packages/jest-haste-map/src/lib/__tests__/extract_requires.test.js +++ b/packages/jest-haste-map/src/lib/__tests__/extract_requires.test.js @@ -84,12 +84,22 @@ describe('extractRequires', () => { it('ignores type imports', () => { const code = [ "import type foo from 'bar';", - "import type {", - " bar,", - " baz,", + 'import type {', + ' bar,', + ' baz,', "} from 'wham'", ].join('\r\n'); expect(extractRequires(code)).toEqual([]); }); + + it('ignores type exports', () => { + const code = [ + 'export type Foo = number;', + 'export default {}', + "export * from 'module1'", + ].join('\r\n'); + + expect(extractRequires(code)).toEqual(['module1']); + }); });