Skip to content

Commit

Permalink
Update Jest to v29 (#1271)
Browse files Browse the repository at this point in the history
* Update Jest to v29

* Add stream to workspace test

Without `--stream` in the workspace package, the command ends
successfully without correctly running the tests.
  • Loading branch information
nicholas-l authored Aug 17, 2023
1 parent 8ddb6a2 commit 956d011
Show file tree
Hide file tree
Showing 4 changed files with 983 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/foam-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/foam-vscode/src/test/support/vscode-environment.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Loading

0 comments on commit 956d011

Please sign in to comment.