diff --git a/packages/vitest/src/runtime/collect.ts b/packages/vitest/src/runtime/collect.ts index 35a74eb583bb..85df4c0e452e 100644 --- a/packages/vitest/src/runtime/collect.ts +++ b/packages/vitest/src/runtime/collect.ts @@ -61,8 +61,6 @@ export async function collectTests(paths: string[], config: ResolvedConfig) { state: 'fail', error: processError(e), } - // not sure thy, this line is needed to trigger the error - stdout().write('\0') } calculateHash(file) diff --git a/packages/vitest/src/runtime/worker.ts b/packages/vitest/src/runtime/worker.ts index 9f3beea54aa9..4765b6f07e50 100644 --- a/packages/vitest/src/runtime/worker.ts +++ b/packages/vitest/src/runtime/worker.ts @@ -63,8 +63,6 @@ function init(ctx: WorkerContext) { if (typeof __vitest_worker__ !== 'undefined' && ctx.config.threads && ctx.config.isolate) throw new Error(`worker for ${ctx.files.join(',')} already initialized by ${getWorkerState().ctx.files.join(',')}. This is probably an internal bug of Vitest.`) - stdout().write('\0') - const { config, port, id } = ctx process.env.VITEST_WORKER_ID = String(id)