Skip to content

Commit 99418d2

Browse files
committed
test: fix TEST_ISOLATED
1 parent 9a13353 commit 99418d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/plugin-rsc/e2e/fixture.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function useFixture(options: {
9292
...options.cliOptions,
9393
})
9494
await proc.done
95+
assert(proc.proc.exitCode === 0)
9596
}
9697
const proc = runCli({
9798
command: options.command ?? `pnpm preview`,
@@ -161,7 +162,7 @@ export async function setupIsolatedFixture(options: {
161162
// setup package.json overrides
162163
const packagesDir = path.join(import.meta.dirname, '..', '..')
163164
const overrides = {
164-
'@hiogawa/vite-rsc': `file:${path.join(packagesDir, 'rsc')}`,
165+
'@hiogawa/vite-rsc': `file:${path.join(packagesDir, 'plugin-rsc')}`,
165166
}
166167
editFileJson(path.join(options.dest, 'package.json'), (pkg: any) => {
167168
Object.assign(((pkg.pnpm ??= {}).overrides ??= {}), overrides)
@@ -170,6 +171,7 @@ export async function setupIsolatedFixture(options: {
170171

171172
// install
172173
await x('pnpm', ['i'], {
174+
throwOnError: true,
173175
nodeOptions: {
174176
cwd: options.dest,
175177
stdio: process.env.TEST_DEBUG ? 'inherit' : undefined,

0 commit comments

Comments
 (0)