Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 0ca7458

Browse files
committed
Fix failing tests on Node v12
The issue of tests failing on Node v12 seems to be related to mocha. Running it as node node_modules/mocha/bin/_mocha solves the issue.
1 parent b862761 commit 0ca7458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"test": "npm run lint && npm run check && npm run testonly:cover && npm run prettier:check && npm run check:spelling && npm run build:npm && npm run check:integrations",
4242
"lint": "eslint .",
4343
"check": "tsc --noEmit",
44-
"testonly": "mocha src/**/__tests__/**/*.ts",
44+
"testonly": "node node_modules/mocha/bin/_mocha src/**/__tests__/**/*.ts",
4545
"testonly:cover": "nyc npm run testonly",
4646
"prettier": "prettier --write --list-different .",
4747
"prettier:check": "prettier --check .",

0 commit comments

Comments
 (0)