Skip to content

Commit e4420f6

Browse files
committed
JS: Move babel-root-import test
This moves the test for the babel `root-import` plugin into the new unit test for import resolution, so we only have one set of tests to maintain. The actual implementation is added in the next commit.
1 parent 6725cb5 commit e4420f6

File tree

20 files changed

+7
-20
lines changed

20 files changed

+7
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import f from '~/a'; // $ MISSING: importTarget=BabelRootImport/tst1/a.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import f from '~/a'; // $ MISSING: importTarget=BabelRootImport/tst1/a.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import g from '~/b.js'; // $ MISSING: importTarget=BabelRootImport/tst2/src/js/b.js
2+
import f from '#/a'; // $ MISSING: importTarget=BabelRootImport/tst1/a.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import greeting from '~/b.js'; // $ MISSING: importTarget=BabelRootImport/tst3/src/b.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import g from '~/b.js'; // $ MISSING: importTarget=BabelRootImport/tst4/src/js/b.js
2+
import f from '#/a'; // $ MISSING: importTarget=BabelRootImport/tst1/a.js

javascript/ql/test/library-tests/frameworks/babel/root-import/Imports.expected

-9
This file was deleted.

javascript/ql/test/library-tests/frameworks/babel/root-import/Imports.ql

-4
This file was deleted.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst1/index.js

-1
This file was deleted.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst1/nested/tst.js

-1
This file was deleted.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst2/index.js

-2
This file was deleted.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst3/index.js

-1
This file was deleted.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst4/index.js

-2
This file was deleted.

0 commit comments

Comments
 (0)