fix: jest test global env

This commit is contained in:
Innei
2022-02-01 19:05:14 +08:00
parent c7ef4624d3
commit fe55bbc8c4
10 changed files with 104 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
const { cd, $, chalk } = require('zx')
const globals = { $, chalk, cd, consola: console }
const globals = { $, chalk, cd, consola: console, isDev: true }
for (const key in globals) {
global[key] = globals[key]