File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ test.describe.only(() => {
113113
114114 let tmpRoot = path . join ( os . tmpdir ( ) , 'test-vite-rsc' )
115115 test . beforeAll ( async ( ) => {
116+ console . error ( '[beforeAll]' )
116117 await setupIsolatedFixture ( { src : 'examples/basic' , dest : tmpRoot } )
117118 // try {
118119 // await setupIsolatedFixture({ src: 'examples/basic', dest: tmpRoot })
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export async function setupIsolatedFixture(options: {
151151 src : string
152152 dest : string
153153} ) {
154+ console . error ( '[setupIsolatedFixture]' )
154155 // copy fixture
155156 fs . rmSync ( options . dest , { recursive : true , force : true } )
156157 fs . cpSync ( options . src , options . dest , { recursive : true } )
@@ -159,6 +160,8 @@ export async function setupIsolatedFixture(options: {
159160 force : true ,
160161 } )
161162
163+ console . error ( '[setupIsolatedFixture] copy done' )
164+
162165 // setup package.json overrides
163166 const packagesDir = path . join ( import . meta. dirname , '..' , '..' )
164167 const overrides = {
@@ -171,18 +174,18 @@ export async function setupIsolatedFixture(options: {
171174
172175 // install
173176 console . error ( '[setupIsolatedFixture] before pnpm' )
174- // await x('pnpm', ['i'], {
175- // throwOnError: true,
176- // nodeOptions: {
177- // cwd: options.dest,
178- // stdio: [
179- // 'ignore',
180- // // process.env.TEST_DEBUG ? 'inherit' : 'ignore',
181- // 'inherit',
182- // 'inherit',
183- // ],
184- // },
185- // })
177+ await x ( 'pnpm' , [ 'i' ] , {
178+ throwOnError : true ,
179+ nodeOptions : {
180+ cwd : options . dest ,
181+ stdio : [
182+ 'ignore' ,
183+ // process.env.TEST_DEBUG ? 'inherit' : 'ignore',
184+ 'inherit' ,
185+ 'inherit' ,
186+ ] ,
187+ } ,
188+ } )
186189 console . error ( '[setupIsolatedFixture] after pnpm' )
187190}
188191
You can’t perform that action at this time.
0 commit comments