From ba2af1c29a9560bed6743b117d7cc51beb36b12e Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Mon, 14 Sep 2026 21:14:00 -0700 Subject: [PATCH] test: exercise import aliases without Windows symlink privileges --- src/tooling/importDirections.test.mjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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/); });