chore: bump jest from 25.5.4 to 26.0.1
This commit is contained in:
committed by
Michael Vines
parent
615252c2e9
commit
ec71ed9e57
@ -5,3 +5,4 @@
|
||||
/flow-typed
|
||||
/lib
|
||||
/module.flow.js
|
||||
/jest-environment.js
|
||||
|
1182
web3.js/flow-typed/npm/jest_v24.x.x.js
vendored
1182
web3.js/flow-typed/npm/jest_v24.x.x.js
vendored
File diff suppressed because it is too large
Load Diff
1218
web3.js/flow-typed/npm/jest_v26.x.x.js
vendored
Normal file
1218
web3.js/flow-typed/npm/jest_v26.x.x.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
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;
|
1158
web3.js/package-lock.json
generated
1158
web3.js/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -67,6 +67,9 @@
|
||||
"test:live": "npm run build:fixtures && cross-env NODE_ENV=test TEST_LIVE=1 jest --useStderr",
|
||||
"test:watch": "npm run build:fixtures && cross-env NODE_ENV=test jest --watch --useStderr"
|
||||
},
|
||||
"jest": {
|
||||
"testEnvironment": "./jest-environment"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.1",
|
||||
"bn.js": "^5.0.0",
|
||||
@ -116,7 +119,7 @@
|
||||
"flow-bin": "0.123.0",
|
||||
"flow-typed": "3.1.0",
|
||||
"fs-file-tree": "1.1.0",
|
||||
"jest": "25.5.4",
|
||||
"jest": "26.0.1",
|
||||
"marked": "^0.8.0",
|
||||
"prettier": "^2.0.0",
|
||||
"rimraf": "3.0.2",
|
||||
|
Reference in New Issue
Block a user