chore: bump jest from 25.5.4 to 26.0.1

This commit is contained in:
Justin Starry
2020-05-19 18:57:26 +08:00
committed by Michael Vines
parent 615252c2e9
commit ec71ed9e57
6 changed files with 1830 additions and 1763 deletions

View File

@ -0,0 +1,27 @@
const NodeEnvironment = require('jest-environment-node');
class CustomEnvironment extends NodeEnvironment {
constructor(config, context) {
Object.assign(config.globals, {
Uint8Array,
ArrayBuffer,
});
super(config, context);
this.testPath = context.testPath;
this.docblockPragmas = context.docblockPragmas;
}
async setup() {
await super.setup();
}
async teardown() {
await super.teardown();
}
runScript(script) {
return super.runScript(script);
}
}
module.exports = CustomEnvironment;