mirror of
https://github.com/jo-inc/camofox-browser.git
synced 2026-10-02 04:14:41 +08:00
- 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
46 lines
984 B
JavaScript
46 lines
984 B
JavaScript
module.exports = {
|
|
// Disable transforms — we use native ESM via --experimental-vm-modules
|
|
transform: {},
|
|
testEnvironment: 'node',
|
|
testTimeout: 60000, // 60 seconds per test
|
|
|
|
// Run tests sequentially to avoid resource conflicts
|
|
maxWorkers: 1,
|
|
|
|
// Test file patterns
|
|
testMatch: [
|
|
'**/tests/**/*.test.js',
|
|
'**/plugins/**/*.test.js',
|
|
'**/scripts/**/*.test.js'
|
|
],
|
|
|
|
// Ignore patterns
|
|
testPathIgnorePatterns: [
|
|
'/node_modules/'
|
|
],
|
|
|
|
// Setup and teardown
|
|
globalSetup: undefined,
|
|
globalTeardown: undefined,
|
|
|
|
// Verbose output
|
|
verbose: true,
|
|
|
|
// Don't bail — run full suite even if a test fails
|
|
bail: 0,
|
|
|
|
// Coverage settings (optional)
|
|
collectCoverage: false,
|
|
coverageDirectory: 'coverage',
|
|
coveragePathIgnorePatterns: [
|
|
'/node_modules/',
|
|
'/tests/'
|
|
],
|
|
|
|
// Reporter settings
|
|
reporters: [
|
|
'default',
|
|
...(process.env.CI ? [['jest-junit', { outputDirectory: 'test-results' }]] : [])
|
|
]
|
|
};
|