Skip to content

Commit

Permalink
chore: fix test for real this time (#9887)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored May 9, 2023
1 parent 84c4b53 commit 51c0b3c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/kit/test/build-errors/prerender.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ test('entry generators should match their own route', () => {
assert.throws(
() =>
execSync('pnpm build', {
cwd: path.join(process.cwd(), 'apps/preprender-entry-generator-mismatch'),
cwd: path.join(process.cwd(), 'apps/prerender-entry-generator-mismatch'),
stdio: 'pipe',
timeout: 60000
}),
new Error(
'The entries export from /[slug]/[notSpecific] generated entry /whatever/specific, which was matched by /[slug]/specific - see the `handleEntryGeneratorMismatch` option in https://kit.svelte.dev/docs/configuration#prerender for more info.'
)
/** @param {Error} err */ (err) =>
err.message.includes(
'Error: The entries export from /[slug]/[notSpecific] generated entry /whatever/specific, which was matched by /[slug]/specific - see the `handleEntryGeneratorMismatch` option in https://kit.svelte.dev/docs/configuration#prerender for more info.\nTo suppress or handle this error, implement `handleEntryGeneratorMismatch` in https://kit.svelte.dev/docs/configuration#prerender'
)
);
});

Expand Down

0 comments on commit 51c0b3c

Please sign in to comment.