1 Star 0 Fork 0

懒懒的狸花猫/tagspaces

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
minioEnv.js 601 Bytes
一键复制 编辑 原始数据 按行查看 历史
Stanimir 提交于 2020-09-05 04:51 +08:00 . Tsn49 e2 e testing suite v2 (#1175)
/*const {
NODE_JEST = 'test_minio',
} = process.env;
const ENV = {
NODE_JEST,
};
module.exports.ENV = ENV;*/
const NodeEnvironment = require('jest-environment-node');
class CustomEnvironment extends NodeEnvironment {
constructor(config) {
super(config);
}
async setup() {
// require('ts-node/register');
this.global.process.env.NODE_JEST = 'test_minio';
//this.global.setTimeout(3000)
await super.setup();
}
async teardown() {
await super.teardown();
}
runScript(script) {
return super.runScript(script);
}
}
module.exports = CustomEnvironment;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dxpAndroid/tagspaces.git
git@gitee.com:dxpAndroid/tagspaces.git
dxpAndroid
tagspaces
tagspaces
develop

搜索帮助