mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
8 lines
255 B
TypeScript
8 lines
255 B
TypeScript
import { expect, test } from 'vitest'
|
|
|
|
test('custom env is defined', () => {
|
|
expect(expect.getState().environment).toBe('custom')
|
|
expect((globalThis as any).testEnvironment).toBe('custom')
|
|
expect((globalThis as any).option).toBe('custom-option')
|
|
})
|