Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

test: exercise import aliases without Windows symlink privileges

Sameh Khamisba2af1c29a95
diff --git a/src/tooling/importDirections.test.mjs b/src/tooling/importDirections.test.mjs
index ef486fa2c..b34fee3b9 100644
--- a/src/tooling/importDirections.test.mjs
+++ b/src/tooling/importDirections.test.mjs
@@ -172,8 +172,13 @@ test('compatibility exceptions are limited to the two existing composition entri
test('symlink aliases do not hide renderer ownership', (t) => {
const { root, write } = fixture(t);
- write('src/sources/demo.js', "import './helper.js';");
+ write('src/sources/demo.js', "import './helper/view.js';");
write('src/ui/view.js');
- symlinkSync('../ui/view.js', path.join(root, 'src/sources/helper.js'));
+ // Directory junctions exercise the same resolved edge without Windows symlink privileges.
+ symlinkSync(
+ path.join(root, 'src/ui'),
+ path.join(root, 'src/sources/helper'),
+ 'junction',
+ );
assert.throws(() => checkImportDirections(root), /rendering|symlinks/);
});