Skip to content

Commit

Permalink
chore: cleanup uncessary output
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 9, 2022
1 parent 4701e0b commit 9ba6dae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/vitest/src/runtime/collect.ts
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions packages/vitest/src/runtime/worker.ts
Expand Up @@ -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)
Expand Down

0 comments on commit 9ba6dae

Please sign in to comment.