ci: fix reporter test (node:test vs Jest), bump CI timeout, disable bail

- Run reporter.test.js with node --test (uses node:test, not Jest)
- Exclude reporter.test from Jest run
- Bump client timeout to 60s in CI (Camoufox cold start on GitHub runners)
- Disable bail so full suite runs even on failure
This commit is contained in:
Pradeep Elankumaran
2026-04-25 08:39:56 -07:00
parent 5456b4d68e
commit f01ee38194
3 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -28,10 +28,13 @@ jobs:
npm install --no-save jest-junit
npx playwright install --with-deps firefox
- name: Run tests
- name: Run tests (node:test)
run: node --test tests/unit/reporter.test.js
- name: Run tests (Jest + browser)
run: |
xvfb-run --auto-servernum \
node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit \
--testPathIgnorePatterns="live"
--testPathIgnorePatterns="live|reporter\.test"
env:
CI: true
+2 -2
View File
@@ -26,8 +26,8 @@ module.exports = {
// Verbose output
verbose: true,
// Fail fast on first error (useful for CI)
bail: process.env.CI ? 1 : 0,
// Don't bail — run full suite even if a test fails
bail: 0,
// Coverage settings (optional)
collectCoverage: false,
+1 -1
View File
@@ -7,7 +7,7 @@ class BrowserClient {
this.sessionKey = crypto.randomUUID();
this.listItemId = this.sessionKey; // Legacy alias
this.tabs = [];
this.timeout = 30000; // 30 second default timeout
this.timeout = process.env.CI ? 60000 : 30000;
}
async request(method, path, body = null, options = {}) {