Skip to content

Commit 44d1d00

Browse files
committed
fix test
1 parent 7f6ce80 commit 44d1d00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev-packages/browser-integration-tests/utils/staticAssets.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@ export function addStaticAsset(localOutPath: string, fileName: string, cb: () =>
2323
}
2424

2525
export function symlinkAsset(originalPath: string, targetPath: string): void {
26-
fs.linkSync(originalPath, targetPath);
26+
try {
27+
fs.linkSync(originalPath, targetPath);
28+
} catch {
29+
// ignore errors here, probably means the file already exists
30+
// Since we always build into a new directory for each test, we can safely ignore this
31+
}
2732
}

0 commit comments

Comments
 (0)