Skip to content

Commit 39bd12b

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 f45d644 commit 39bd12b

File tree

20 files changed

+7
-20
lines changed

20 files changed

+7
-20
lines changed

javascript/ql/test/library-tests/frameworks/babel/root-import/tst1/.babelrc.json renamed to javascript/ql/test/library-tests/PathResolution/BabelRootImport/tst1/.babelrc.json

File renamed without changes.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst1/a.js renamed to javascript/ql/test/library-tests/PathResolution/BabelRootImport/tst1/a.js

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import f from '~/a'; // $ importTarget=BabelRootImport/tst1/a.js
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import f from '~/a'; // $ importTarget=BabelRootImport/tst1/a.js
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import g from '~/b.js'; // $ importTarget=BabelRootImport/tst2/src/js/b.js
2+
import f from '#/a'; // $ importTarget=BabelRootImport/tst1/a.js

javascript/ql/test/library-tests/frameworks/babel/root-import/tst2/package.json renamed to javascript/ql/test/library-tests/PathResolution/BabelRootImport/tst2/package.json

File renamed without changes.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst2/src/js/b.js renamed to javascript/ql/test/library-tests/PathResolution/BabelRootImport/tst2/src/js/b.js

File renamed without changes.

javascript/ql/test/library-tests/frameworks/babel/root-import/tst3/.babelrc.json renamed to javascript/ql/test/library-tests/PathResolution/BabelRootImport/tst3/.babelrc.json

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import greeting from '~/b.js'; // $ importTarget=BabelRootImport/tst3/src/b.js

javascript/ql/test/library-tests/frameworks/babel/root-import/tst3/src/b.js renamed to javascript/ql/test/library-tests/PathResolution/BabelRootImport/tst3/src/b.js

File renamed without changes.

0 commit comments

Comments
 (0)