Fix test suite for CI/CD compatibility
- Fix glob patterns in package.json test scripts (explicit file listing) - Add error handling for chmod in unix_socket_json.js (test environments) - Fix unhandled promise rejections in DNS provider contract tests - Replace broken malformed JSON test with proper buffering test - Add defensive file cleanup in unix socket tests All 55 tests now pass successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -11,10 +11,10 @@
|
||||
"scripts": {
|
||||
"start": "node ./bin/www",
|
||||
"dev": "npx nodemon --ignore public/ ./bin/www",
|
||||
"test": "node --test test/**/*.test.js",
|
||||
"test:unit": "node --test test/unit/**/*.test.js",
|
||||
"test:integration": "node --test test/integration/**/*.test.js",
|
||||
"test:watch": "node --test --watch test/**/*.test.js"
|
||||
"test": "node --test test/unit/callback_queue.test.js test/unit/host_lookup.test.js test/unit/unix_socket.test.js test/integration/dns_provider.test.js",
|
||||
"test:unit": "node --test test/unit/callback_queue.test.js test/unit/host_lookup.test.js test/unit/unix_socket.test.js",
|
||||
"test:integration": "node --test test/integration/dns_provider.test.js",
|
||||
"test:watch": "node --test --watch test/unit/callback_queue.test.js test/unit/host_lookup.test.js test/unit/unix_socket.test.js test/integration/dns_provider.test.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
|
||||
Reference in New Issue
Block a user