test: exercise import aliases without Windows symlink privileges

This commit is contained in:
Sameh Khamis committed 2026-09-14 21:14:00 -07:00
1 parent cc960b0dbe
commit ba2af1c29a
1 file changed
+7 -2
+7 -2
View File
@@ -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/);
});