Skip to content

Commit 06af3db

Browse files
committed
update tests
1 parent 49a87af commit 06af3db

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/kit/test/apps/basics/src/hooks.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ export const handle = sequence(
3535
throw new Error('Error in handle');
3636
}
3737

38-
const response = await resolve(request, { ssr: !request.url.pathname.startsWith('/no-ssr') });
38+
const response = await resolve(request, {
39+
hydrate: request.url.pathname !== '/no-hydrate' && request.url.pathname !== '/no-hydrate/no-js',
40+
router: request.url.pathname !== '/no-router/a' && request.url.pathname !== '/no-hydrate/no-js',
41+
ssr: !request.url.pathname.startsWith('/no-ssr')
42+
});
3943

4044
return {
4145
...response,

packages/kit/test/apps/basics/src/routes/no-hydrate/index.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script context="module">
2-
export const hydrate = false;
3-
42
/** @type {import('@sveltejs/kit').Load} */
53
export async function load({ fetch }) {
64
const res = await fetch('/no-hydrate.json');
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
<script context="module">
2-
export const hydrate = false;
3-
</script>
4-
51
<h1>look ma no javascript</h1>

0 commit comments

Comments
 (0)