Skip to content

Commit

Permalink
Allow external directory imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Feb 26, 2022
1 parent 8f75b6b commit b963910
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/misc/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ console.log(x);
assert.match(subfeature.code, /^import { fn } from '\.\.\/\.\.\/main'/);
assert.strictEqual(subsubfeature.fileName, 'base/main/feature/sub/sub');
assert.match(subsubfeature.code, /^import { fn } from '\.\.\/\.\.\/\.\.\/main'/);
assert.strictEqual(subsubfeature.fileName, 'base/main/feature/sub/sub');
assert.ok(subsubfeature.code.startsWith("import { fn } from '../../../main'"));
});

it('throws the proper error on max call stack exception', async () => {
Expand Down

0 comments on commit b963910

Please sign in to comment.