Skip to content

Commit ef205fc

Browse files
committed
fixup! fix(@angular/build): resolve test files correctly on Windows when using non-C drives
1 parent 19f0d09 commit ef205fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/e2e/tests/vitest/windows-subst-drive.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ export default async function (): Promise<void> {
3232
// Verify that the file system mapping is working as expected.
3333
assert(fs.existsSync('angular.json'), 'angular.json should exist on the subst drive');
3434

35+
// Enable preserveSymlinks to help mitigate dual-package issues where node_modules
36+
// might be resolved to the physical drive (D:) vs the subst drive (X:).
37+
await silentExec(
38+
'ng',
39+
'config',
40+
'projects.test-project.architect.test.options.preserveSymlinks',
41+
'true',
42+
);
43+
3544
// 3. Run `ng test`.
3645
const { stdout } = await exec('ng', 'test', '--watch=false');
3746

0 commit comments

Comments
 (0)