mirror of
https://github.com/foambubble/foam.git
synced 2026-01-10 06:28:12 -05:00
Update Jest to v29 (#1271)
* Update Jest to v29 * Add stream to workspace test Without `--stream` in the workspace package, the command ends successfully without correctly running the tests.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
"reset": "yarn && yarn clean && yarn build",
|
||||
"clean": "lerna run clean",
|
||||
"build": "lerna run build",
|
||||
"test": "yarn workspace foam-vscode test",
|
||||
"test": "yarn workspace foam-vscode test --stream",
|
||||
"lint": "lerna run lint",
|
||||
"watch": "lerna run watch --concurrency 20 --stream"
|
||||
},
|
||||
|
||||
@@ -561,7 +561,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/dateformat": "^3.0.1",
|
||||
"@types/jest": "^27.5.1",
|
||||
"@types/jest": "^29.5.3",
|
||||
"@types/lodash": "^4.14.157",
|
||||
"@types/markdown-it": "^12.0.1",
|
||||
"@types/micromatch": "^4.0.1",
|
||||
@@ -578,12 +578,12 @@
|
||||
"eslint-plugin-import": "^2.27.5",
|
||||
"eslint-plugin-jest": "^27.2.1",
|
||||
"husky": "^4.2.5",
|
||||
"jest": "^27.5.1",
|
||||
"jest": "^29.6.2",
|
||||
"jest-extended": "^3.2.3",
|
||||
"markdown-it": "^12.0.4",
|
||||
"micromatch": "^4.0.2",
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^27.1.5",
|
||||
"ts-jest": "^29.1.1",
|
||||
"tslib": "^2.0.0",
|
||||
"typescript": "^4.9.5",
|
||||
"vscode-test": "^1.3.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const NodeEnvironment = require('jest-environment-node');
|
||||
const { TestEnvironment } = require('jest-environment-node');
|
||||
const vscode = require('vscode');
|
||||
|
||||
class VscodeEnvironment extends NodeEnvironment {
|
||||
class VscodeEnvironment extends TestEnvironment {
|
||||
async setup() {
|
||||
await super.setup();
|
||||
this.global.vscode = vscode;
|
||||
|
||||
Reference in New Issue
Block a user