CI / build + unit + e2e (pull_request) Successful in 7m43s
Replace the ISS-011 auto-slow with pause-on-landing: when the last plane
in flight lands, tickOnce sets sim_state.paused=true WITHOUT touching
timeScale (speed preserved). flyPlane() now clears paused before
persisting so starting a flight resumes a paused sim — inside runAction(),
tick + unpause + dispatch are atomic under the sim lock.
Tests: engine.test.ts auto-slow block rewritten for pause semantics; new
flyPlane test asserts dispatch clears paused with speed untouched. E2E:
auto-slow.spec.ts renamed to pause-on-landing.spec.ts asserting the new
behavior (paused=true AND timeScale still 1000 after landing; /fly clears
paused). Cross-cutting fix: every per-spec setScale helper now POSTs
{timeScale, paused:false} — a scale-only fast-forward after a landing would
otherwise leave the clock frozen. Deliberate mid-test pauses untouched.
31 lines
729 B
JSON
31 lines
729 B
JSON
{
|
|
"name": "flight-ops",
|
|
"version": "0.24.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev -p 3000",
|
|
"build": "next build",
|
|
"start": "next start -p 3000",
|
|
"assets:download": "node scripts/download-map-assets.mjs",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"drizzle-orm": "^0.45.2",
|
|
"maplibre-gl": "^6.10.0",
|
|
"next": "^16.3.5",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"sql.js": "^1.14.2"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.63.0",
|
|
"@types/node": "^22.20.3",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@types/sql.js": "^1.4.11",
|
|
"typescript": "^7.0.2",
|
|
"vitest": "^5.0.1"
|
|
}
|
|
}
|