mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
10 lines
347 B
TypeScript
10 lines
347 B
TypeScript
import { expect, inject, test } from 'vitest'
|
|
|
|
test('global setup provides data correctly', () => {
|
|
expect(inject('globalSetup')).toBe(true)
|
|
expect(inject('globalSetupOverridden')).toBe(true)
|
|
expect(inject('projectConfigValue')).toBe(true)
|
|
expect(inject('globalConfigValue')).toBe(true)
|
|
expect(inject('invalidValue')).toBe(undefined)
|
|
})
|