Skip to content

Commit 10a75cc

Browse files
committed
Fix tests not running on node 22.
1 parent bf64593 commit 10a75cc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
],
1010
"scripts": {
1111
"lint": "eslint .",
12-
"test": "nyc node --security-revert=CVE-2023-46809 ./node_modules/.bin/mocha test/**/*.js",
12+
"test": "npm run test:node$(node -v | cut -d '.' -f 1 | cut -c 2-)",
13+
"test:node22": "nyc node ./node_modules/.bin/mocha test/**/*.js",
14+
"test:node20": "nyc node --security-revert=CVE-2023-46809 ./node_modules/.bin/mocha test/**/*.js",
15+
"test:node18": "nyc node --security-revert=CVE-2023-46809 ./node_modules/.bin/mocha test/**/*.js",
1316
"coverage": "nyc report --reporter=text-lcov | coveralls",
1417
"version": "auto-changelog -p -t changelog-template.hbs && git add CHANGELOG.md"
1518
},
@@ -79,8 +82,8 @@
7982
"eslint": "^6.7.2",
8083
"eslint-config-ecollect-base": "^0.1.2",
8184
"eslint-plugin-import": "^2.28.1",
85+
"libxmljs": "^1.0.10",
8286
"mocha": "^10.2.0",
83-
"nyc": "^15.1.0",
84-
"xmllint-wasm": "^4.0.2"
87+
"nyc": "^15.1.0"
8588
}
8689
}

0 commit comments

Comments
 (0)