|
|
@ -272,9 +272,7 @@ async function run_test_variant(
|
|
|
|
if (variant === 'hydrate' || variant === 'ssr') {
|
|
|
|
if (variant === 'hydrate' || variant === 'ssr') {
|
|
|
|
config.before_test?.();
|
|
|
|
config.before_test?.();
|
|
|
|
// ssr into target
|
|
|
|
// ssr into target
|
|
|
|
const SsrSvelteComponent = (
|
|
|
|
const SsrSvelteComponent = (await import(`${cwd}/_output/server/main.svelte.js`)).default;
|
|
|
|
await import(`${cwd}/_output/server/main.svelte.js`).catch((e) => if(cwd.includes("transition-js-await-block")){ console.log(e.stack)})
|
|
|
|
|
|
|
|
).default;
|
|
|
|
|
|
|
|
const { html, head } = render(SsrSvelteComponent, {
|
|
|
|
const { html, head } = render(SsrSvelteComponent, {
|
|
|
|
props: config.server_props ?? config.props ?? {}
|
|
|
|
props: config.server_props ?? config.props ?? {}
|
|
|
|
});
|
|
|
|
});
|
|
|
|