Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
411 B · 14 lines
TypeScript
123456789101112131415import type { ViteUserConfig } from 'vitest/config'import { expect, test } from 'vitest'
test('is isolated', () => { // @ts-expect-error -- internal const config: NonNullable<ViteUserConfig['test']> = globalThis.__vitest_worker__.config
if (config.pool === 'forks') { expect(config.isolate).toBe(true) } else { expect(config.pool).toBe('threads') expect(config.isolate).toBe(true) }})