Skip to content

Commit

Permalink
Revert "test: mess process"
Browse files Browse the repository at this point in the history
This reverts commit 1538626.
  • Loading branch information
poyoho committed Feb 12, 2022
1 parent 1538626 commit d4fb702
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions packages/vitest/src/runtime/entry.ts
Expand Up @@ -17,10 +17,7 @@ export async function run(files: string[], config: ResolvedConfig): Promise<void
__vitest_worker__.filepath = file

await withEnv(env as BuiltinEnvironment, config.environmentOptions || {}, async() => {
const cacheProcess = process
await startTests([file], config)
// eslint-disable-next-line no-global-assign
process = cacheProcess
})

__vitest_worker__.filepath = undefined
Expand Down
6 changes: 0 additions & 6 deletions test/core/test/basic.test.ts
Expand Up @@ -2,12 +2,6 @@ import { assert, expect, it, suite, test } from 'vitest'
import { two } from '../src/submodule'
import { timeout } from '../src/timeout'

test('mess process', () => {
// eslint-disable-next-line no-global-assign
process = 1 as any
expect(process).toBe(1)
})

test('Math.sqrt()', async() => {
assert.equal(Math.sqrt(4), two)
assert.equal(Math.sqrt(2), Math.SQRT2)
Expand Down

0 comments on commit d4fb702

Please sign in to comment.