Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 9, 2024
1 parent a64afa9 commit 420d645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/vitest/src/runtime/workers/forks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class ForksBaseWorker implements VitestWorker {
}

async runTests(state: WorkerGlobalState) {
// TODO: don't rely on reassigning process.exit
// https://github.com/vitest-dev/vitest/pull/4441#discussion_r1443771486
const exit = process.exit
state.ctx.config = unwrapForksConfig(state.ctx.config)

Expand Down
1 change: 0 additions & 1 deletion packages/vitest/src/runtime/workers/vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { pathToFileURL } from 'node:url'
import { resolve } from 'pathe'
import type { WorkerGlobalState } from '../../types/worker'
import { createCustomConsole } from '../console'
import type { VitestExecutor } from '../execute'
import { getDefaultRequestStubs, startVitestExecutor } from '../execute'
import { distDir } from '../../paths'
import { ExternalModulesExecutor } from '../external-executor'
Expand Down

0 comments on commit 420d645

Please sign in to comment.