Improve test execution by automatically starting and stopping the API server
Refactor test execution to use a new script that manages the API server lifecycle, including building, starting, waiting for health, running tests, and shutting down, with support for using an existing server.
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
"start": "node --enable-source-maps ./dist/index.mjs",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
"test:wait": "node ./scripts/wait-for-server.mjs",
|
||||
"test": "node --test 'tests/*.test.mjs' && node --test --test-concurrency=1 'tests/serial/**/*.test.mjs'",
|
||||
"test:run": "node --test 'tests/*.test.mjs' && node --test --test-concurrency=1 'tests/serial/**/*.test.mjs'",
|
||||
"test": "node ./scripts/with-server.mjs -- pnpm run test:run",
|
||||
"migrate": "pnpm --filter @workspace/db run push && pnpm --filter scripts run seed"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user