test(cli): add zx TDD infrastructure and phase 1 tests
- Install zx as devDependency for E2E testing - Create tests/ directory with setup utilities - Add setup.ts with test context helpers: - Random port generation (never 6767) - Temp directory creation for PASEO_HOME and workDir - Daemon startup/waitForDaemon helper (WebSocket only) - Cleanup function - paseo() helper to run CLI commands against test daemon - Add Phase 1 foundation tests (01-foundation.test.mts): - Test paseo --version outputs version - Test paseo --help shows commands - Add test runner (run-all.mts) that discovers and runs all tests - Add test:e2e script to package.json
This commit is contained in:
Generated
+18
-2
@@ -26240,6 +26240,19 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/zx": {
|
||||
"version": "8.8.5",
|
||||
"resolved": "https://registry.npmjs.org/zx/-/zx-8.8.5.tgz",
|
||||
"integrity": "sha512-SNgDF5L0gfN7FwVOdEFguY3orU5AkfFZm9B5YSHog/UDHv+lvmd82ZAsOenOkQixigwH2+yyH198AwNdKhj+RA==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"zx": "build/cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.17.0"
|
||||
}
|
||||
},
|
||||
"packages/app": {
|
||||
"name": "@paseo/app",
|
||||
"version": "1.0.0",
|
||||
@@ -26355,14 +26368,17 @@
|
||||
"dependencies": {
|
||||
"@paseo/server": "*",
|
||||
"chalk": "^5.3.0",
|
||||
"commander": "^12.0.0"
|
||||
"commander": "^12.0.0",
|
||||
"ws": "^8.14.2"
|
||||
},
|
||||
"bin": {
|
||||
"paseo": "bin/paseo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/ws": "^8.5.8",
|
||||
"tsx": "^4.6.0",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.2.2",
|
||||
"zx": "^8.8.5"
|
||||
}
|
||||
},
|
||||
"packages/cli/node_modules/chalk": {
|
||||
|
||||
Reference in New Issue
Block a user