test: add mock db test

This commit is contained in:
Innei
2022-01-14 15:36:17 +08:00
parent f4e0f713d2
commit 12a2da7d3c
11 changed files with 280 additions and 45 deletions

6
test-setup.js Normal file
View File

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