Skip to content

Commit d866355

Browse files
committed
fix tests not working on Node v23
1 parent c5332cc commit d866355

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"start:webhooks": "node --require source-map-support/register lib/App/GithubWebhookApp.js",
3232
"start:matrixsender": "node --require source-map-support/register lib/App/MatrixSenderApp.js",
3333
"start:resetcrypto": "node --require source-map-support/register lib/App/ResetCryptoStore.js",
34-
"test": "mocha -r ts-node/register tests/init.ts 'tests/*.ts' 'tests/**/*.ts'",
35-
"test:e2e": "tsc --p tsconfig.spec.json && cp ./lib/libRs.js ./lib/matrix-hookshot-rs.node ./spec-lib/src && yarn node --experimental-vm-modules $(yarn bin jest)",
36-
"test:cover": "nyc --reporter=lcov --reporter=text yarn test",
34+
"test": "NODE_OPTIONS=--no-experimental-strip-types mocha -r ts-node/register tests/init.ts 'tests/*.ts' 'tests/**/*.ts'",
35+
"test:e2e": "NODE_OPTIONS=--no-experimental-strip-types tsc --p tsconfig.spec.json && cp ./lib/libRs.js ./lib/matrix-hookshot-rs.node ./spec-lib/src && yarn node --experimental-vm-modules $(yarn bin jest)",
36+
"test:cover": "NODE_OPTIONS=--no-experimental-strip-types nyc --reporter=lcov --reporter=text yarn test",
3737
"lint": "yarn run lint:js && yarn run lint:rs",
3838
"lint:js": "eslint",
3939
"lint:rs": "cargo fmt --all -- --check && cargo clippy -- -Dwarnings",

0 commit comments

Comments
 (0)