mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
10 lines
230 B
TypeScript
10 lines
230 B
TypeScript
import { expect, it } from 'vitest'
|
|
|
|
declare global {
|
|
const testValue: string
|
|
}
|
|
|
|
it('the same file works with different projects', () => {
|
|
expect(testValue).toBe(expect.getState().environment === 'node' ? 'node' : 'jsdom')
|
|
})
|