Files
TORCH/test/playwright/fixtures/torch-config.json
T
google-labs-jules[bot]andPR0M3TH3AN e8eec45ff7 feat: add Playwright integration tests with coverage and log capture
- Added `@playwright/test` and `c8` dependencies.
- Configured Playwright in `playwright.config.js` to run the dashboard server.
- Added `test/playwright/dashboard.spec.js` to verify dashboard functionality (loading, auth, config) and capture console logs.
- Modified `src/dashboard.mjs` to support graceful shutdown via `/shutdown` endpoint (guarded by `NODE_V8_COVERAGE`) for coverage collection.
- Updated `package.json` with `test:playwright` and `test:playwright:coverage` scripts.
- Updated `.gitignore` to exclude coverage and test artifacts.
- Fixed `host` default value in `src/cli-parser.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-22 03:22:12 +00:00

31 lines
704 B
JSON

{
"nostrLock": {
"namespace": "test-torch",
"relays": ["wss://relay.damus.io"],
"relayFallbacks": [],
"ttlSeconds": 60,
"queryTimeoutMs": 5000,
"publishTimeoutMs": 5000,
"minSuccessfulRelayPublishes": 1,
"minActiveRelayPool": 1
},
"dashboard": {
"auth": "admin:password",
"defaultCadenceView": "daily",
"defaultStatusView": "active",
"relays": ["wss://relay.damus.io"],
"namespace": "test-torch",
"hashtag": "test-torch-lock"
},
"scheduler": {
"firstPromptByCadence": {
"daily": "src/prompts/daily/agent.md",
"weekly": "src/prompts/weekly/agent.md"
},
"paused": {
"daily": [],
"weekly": []
}
}
}