diff --git a/examples/test-factories.mjs b/examples/test-factories.mjs index 87b79fa3..0d1ef979 100644 --- a/examples/test-factories.mjs +++ b/examples/test-factories.mjs @@ -16,12 +16,14 @@ export function makeIndexTest ({ main, dev }) { export function makeSSRBuildTest ({ cwd }) { return async () => { await build({ + root: cwd, build: { outDir: 'dist/client', ssrManifest: true, } }) await build({ + root: cwd, build: { outDir: 'dist/server', ssr: './index.js', @@ -30,7 +32,7 @@ export function makeSSRBuildTest ({ cwd }) { } } -export function makeSPABuildTest ({ cwd }) { +export function makeSPABuildTest () { return async () => { await build({ build: { diff --git a/examples/vue-hydration/server.test.js b/examples/vue-hydration/server.test.js index 3e945bbc..3e49d24d 100644 --- a/examples/vue-hydration/server.test.js +++ b/examples/vue-hydration/server.test.js @@ -7,7 +7,7 @@ import { main } from './server.js' const cwd = dirname(fileURLToPath(import.meta.url)) test('vue-hydration', async (t) => { - await t.test('render index page in development', makeIndexTest({ main, dev: true })) await t.test('build production bundle', makeSSRBuildTest({ cwd })) + await t.test('render index page in development', makeIndexTest({ main, dev: true })) await t.test('render index page in production', makeIndexTest({ main })) })