Skip to content

Commit 3980e3c

Browse files
committed
skip symlinks tests when unsupported
1 parent a3d336a commit 3980e3c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

packages/kit/src/core/sync/create_manifest_data/index.spec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import fs from 'fs';
12
import path from 'path';
23
import { fileURLToPath } from 'url';
34
import { test } from 'uvu';
@@ -95,7 +96,13 @@ test('creates routes', () => {
9596
]);
9697
});
9798

98-
test('creates symlinked routes', () => {
99+
const symlink_survived_git = fs
100+
.statSync(path.join(cwd, 'samples/symlinks/routes/foo'))
101+
.isSymbolicLink();
102+
103+
const test_symlinks = symlink_survived_git ? test : test.skip;
104+
105+
test_symlinks('creates symlinked routes', () => {
99106
const { components, routes } = create('samples/symlinks/routes');
100107

101108
const index = 'samples/symlinks/routes/index.svelte';

0 commit comments

Comments
 (0)