Skip to content

Commit 09bc30f

Browse files
committed
Bake NODE_OPTIONS=--experimental-vm-modules into npm test
Required for jest 29 to load the ESM-only html-to-structured-text project. Routed through cross-env for Windows compatibility.
1 parent 06bc8d7 commit 09bc30f

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"devDependencies": {
55
"@types/jest": "^29.5.12",
66
"@typescript-eslint/eslint-plugin": "^4.12.0",
7+
"cross-env": "^7.0.3",
78
"@typescript-eslint/parser": "^4.12.0",
89
"eslint": "^7.17.0",
910
"eslint-config-prettier": "^7.1.0",
@@ -20,7 +21,7 @@
2021
"url": "git://github.com/datocms/structured-text.git"
2122
},
2223
"scripts": {
23-
"test": "npm run lint && jest",
24+
"test": "npm run lint && cross-env NODE_OPTIONS=--experimental-vm-modules jest",
2425
"build": "lerna bootstrap && lerna run build",
2526
"publish": "npm run build && npm run test && lerna publish",
2627
"publish-next": "npm run build && npm run test && lerna publish --dist-tag next",

0 commit comments

Comments
 (0)