Skip to content

Commit d993d15

Browse files
authored
chore: connectivity test requires node version greater than 18 (#84)
1 parent e43dc6a commit d993d15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

connectivity-test/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"main": "index.js",
66
"type": "module",
77
"scripts": {
8-
"test": "vitest run ./tests/connectivity.test.ts"
8+
"test": "node -e \"const major = Number(process.versions.node.split('.')[0]); if (major < 18) { console.error('\\x1b[31m❌ Node.js version 18 or higher is required to run tests. Current: ' + process.version + '\\x1b[0m'); process.exit(1); }\" && vitest run ./tests/connectivity.test.ts"
9+
},
10+
"engines": {
11+
"node": ">=18"
912
},
1013
"author": "",
1114
"license": "MIT",

0 commit comments

Comments
 (0)