mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
test: exercise import aliases without Windows symlink privileges
This commit is contained in:
1 parent
cc960b0dbe
commit
ba2af1c29a
1 file changed
+7
-2
@@ -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/);
|
||||
});
|
||||
Reference in new issue
Block a user