chore: bump jest from 25.5.4 to 26.0.1
This commit is contained in:
parent
615252c2e9
commit
ec71ed9e57
|
@ -5,3 +5,4 @@
|
|||
/flow-typed
|
||||
/lib
|
||||
/module.flow.js
|
||||
/jest-environment.js
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
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",
|
||||
|
|
Loading…
Reference in New Issue