16
test/setupFiles/add-something-to-global.ts
Normal file
16
test/setupFiles/add-something-to-global.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// @ts-nocheck
|
||||
import { beforeAll } from 'vitest'
|
||||
|
||||
import 'zx/globals'
|
||||
|
||||
beforeAll(async () => {
|
||||
await import('zx/globals')
|
||||
|
||||
global.isDev = true
|
||||
global.cwd = process.cwd()
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
global.isDev = true
|
||||
global.cwd = process.cwd()
|
||||
})
|
||||
Reference in New Issue
Block a user