Skip to content

Commit 2c66597

Browse files
committed
test: cleanup
1 parent 249e5c1 commit 2c66597

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,7 @@ test.describe.only(() => {
118118
'test-vite-rsc',
119119
)
120120
test.beforeAll(async () => {
121-
console.error('[beforeAll]')
122121
await setupIsolatedFixture({ src: 'examples/basic', dest: tmpRoot })
123-
// try {
124-
// await setupIsolatedFixture({ src: 'examples/basic', dest: tmpRoot })
125-
// } catch (e) {
126-
// console.error('[setupIsolatedFixture]', e)
127-
// throw e
128-
// }
129122
})
130123

131124
test.describe('dev-isolated', () => {

packages/plugin-rsc/e2e/fixture.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,12 @@ export async function setupIsolatedFixture(options: {
151151
src: string
152152
dest: string
153153
}) {
154-
console.error('[setupIsolatedFixture]')
155154
// copy fixture
156-
console.error('[setupIsolatedFixture] rmSync', options.dest)
157155
fs.rmSync(options.dest, { recursive: true, force: true })
158-
console.error('[setupIsolatedFixture] cpSync', options.src, options.dest)
159156
fs.cpSync(options.src, options.dest, {
160157
recursive: true,
161158
filter: (src) => !src.includes('node_modules'),
162159
})
163-
console.error('[setupIsolatedFixture] cp done')
164160

165161
// setup package.json overrides
166162
const packagesDir = path.join(import.meta.dirname, '..', '..')
@@ -173,20 +169,17 @@ export async function setupIsolatedFixture(options: {
173169
})
174170

175171
// install
176-
console.error('[setupIsolatedFixture] before pnpm')
177172
await x('pnpm', ['i'], {
178173
throwOnError: true,
179174
nodeOptions: {
180175
cwd: options.dest,
181176
stdio: [
182177
'ignore',
183-
// process.env.TEST_DEBUG ? 'inherit' : 'ignore',
184-
'inherit',
178+
process.env.TEST_DEBUG ? 'inherit' : 'ignore',
185179
'inherit',
186180
],
187181
},
188182
})
189-
console.error('[setupIsolatedFixture] after pnpm')
190183
}
191184

192185
function editFileJson(filepath: string, edit: (s: string) => string) {

0 commit comments

Comments
 (0)