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

@ -5,3 +5,4 @@
/flow-typed
/lib
/module.flow.js
/jest-environment.js

File diff suppressed because it is too large Load Diff

1218
web3.js/flow-typed/npm/jest_v26.x.x.js vendored Normal file

File diff suppressed because it is too large Load Diff

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;

1158
web3.js/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",