Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
Something went wrong. Try again.
12345678910111213import { isMainThread } from 'node:worker_threads'import { expect, test } from 'vitest'
test('is run in "node:worker_threads"', () => { expect(isChildProcess()).toBe(false) expect(isMainThread).toBe(false)})
// TODO: Use from "src/utils/base.ts" after #4441function isChildProcess(): boolean { return !!process?.send}