From 460406cafdc8bf766c0fa1c644303830ab4a4d60 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Tue, 3 Mar 2026 04:31:44 +0800 Subject: [PATCH] fix --- .../src/core/sync/create_manifest_data/index.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/kit/src/core/sync/create_manifest_data/index.spec.js b/packages/kit/src/core/sync/create_manifest_data/index.spec.js index 8a075bd8f403..09f732bed8f9 100644 --- a/packages/kit/src/core/sync/create_manifest_data/index.spec.js +++ b/packages/kit/src/core/sync/create_manifest_data/index.spec.js @@ -111,7 +111,7 @@ test('creates routes', () => { }); const symlink_survived_git = fs - .statSync(path.join(cwd, 'samples/symlinks/routes/foo')) + .lstatSync(path.join(cwd, 'samples/symlinks/routes/foo')) .isSymbolicLink(); const test_symlinks = symlink_survived_git ? test : test.skip; @@ -122,21 +122,21 @@ test_symlinks('creates symlinked routes', () => { expect(nodes.map(simplify_node)).toEqual([ default_layout, default_error, - { component: 'samples/symlinks/routes/foo/index.svelte' }, - { component: 'samples/symlinks/routes/index.svelte' } + { component: 'samples/symlinks/routes/+page.svelte' }, + { component: 'samples/symlinks/routes/foo/+page.svelte' } ]); - expect(routes).toEqual([ + expect(routes.map(simplify_route)).toEqual([ { id: '/', pattern: '/^/$/', - page: { layouts: [0], errors: [1], leaf: 1 } + page: { layouts: [0], errors: [1], leaf: 2 } }, { id: '/foo', pattern: '/^/foo/?$/', - page: { layouts: [0], errors: [1], leaf: 2 } + page: { layouts: [0], errors: [1], leaf: 3 } } ]); });