chore: bump jest from 25.5.4 to 26.0.1
This commit is contained in:
committed by
Michael Vines
parent
615252c2e9
commit
ec71ed9e57
27
web3.js/jest-environment.js
Normal file
27
web3.js/jest-environment.js
Normal 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;
|
Reference in New Issue
Block a user