File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments