@@ -5,10 +5,10 @@ describe('resolveImport', () => {
55 it ( 'should count require' , ( ) => {
66 const result = parseImports (
77 parse (
8+ 'filePath' ,
89 `
910 const test1 = require('test-file1');
1011 ` ,
11- 'filePath' ,
1212 ) ,
1313 ) ;
1414
@@ -19,10 +19,10 @@ describe('resolveImport', () => {
1919 it ( 'should count es6 dynamic import' , ( ) => {
2020 const result = parseImports (
2121 parse (
22+ 'filePath' ,
2223 `
2324 const test1 = import('test-file1');
2425 ` ,
25- 'filePath' ,
2626 ) ,
2727 ) ;
2828
@@ -33,13 +33,13 @@ describe('resolveImport', () => {
3333 it ( 'should count es6 imports' , ( ) => {
3434 const result = parseImports (
3535 parse (
36+ 'filePath' ,
3637 `
3738 import { default as test1 } from 'test-file1';
3839 import { test2, test3 } from 'test-file2';
3940 import test4 from 'test-file3';
4041 import * as test5 from 'test-file4';
4142 ` ,
42- 'filePath' ,
4343 ) ,
4444 ) ;
4545
@@ -55,12 +55,12 @@ describe('resolveImport', () => {
5555 it ( 'should count es6 reexports' , ( ) => {
5656 const result = parseImports (
5757 parse (
58+ 'filePath' ,
5859 `
5960 export { default as test1 } from 'test-file1';
6061 export { test2, test3 } from 'test-file2';
6162 export * from 'test-file3';
6263 ` ,
63- 'filePath' ,
6464 ) ,
6565 ) ;
6666
@@ -71,11 +71,11 @@ describe('resolveImport', () => {
7171 it ( 'should not count exports' , ( ) => {
7272 const result = parseImports (
7373 parse (
74+ 'filePath' ,
7475 `
7576 export default () => {};
7677 export const test = () => {};
7778 ` ,
78- 'filePath' ,
7979 ) ,
8080 ) ;
8181
@@ -86,11 +86,11 @@ describe('resolveImport', () => {
8686 it ( 'should ignore dynamic imports' , ( ) => {
8787 const result = parseImports (
8888 parse (
89+ 'filePath' ,
8990 `
9091 const test1 = require(foo);
9192 const test2 = import(foo);
9293 ` ,
93- 'filePath' ,
9494 ) ,
9595 ) ;
9696
@@ -101,10 +101,10 @@ describe('resolveImport', () => {
101101 it ( 'should count TS import equals declaration' , ( ) => {
102102 const result = parseImports (
103103 parse (
104+ 'filePath.tsx' ,
104105 `
105106 import test1 = require('test-file1');
106107 ` ,
107- 'filePath.tsx' ,
108108 ) ,
109109 ) ;
110110
@@ -115,10 +115,10 @@ describe('resolveImport', () => {
115115 it ( 'should count jest.requireActual' , ( ) => {
116116 const result = parseImports (
117117 parse (
118+ 'filePath' ,
118119 `
119120 const test1 = jest.requireActual('test-file1');
120121 ` ,
121- 'filePath' ,
122122 ) ,
123123 ) ;
124124
0 commit comments