mirror of
https://github.com/jo-inc/camofox-browser.git
synced 2026-10-02 04:14:41 +08:00
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:
@@ -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
@@ -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,
|
||||
|
||||
@@ -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 = {}) {
|
||||
|
||||
Reference in New Issue
Block a user