Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/tooling/generateTranslations.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {afterAll, afterEach, beforeEach, describe, expect, it, jest, mock} from 'bun:test';
import {afterAll, afterEach, beforeEach, describe, expect, it, jest, mock, setDefaultTimeout} from 'bun:test';
import type {Mock} from 'bun:test';

import Git from '@scripts/utils/Git';
Expand All @@ -10,6 +10,12 @@ import fs from 'fs';
import os from 'os';
import path from 'path';

// Each test shells out to the real `oxfmt` binary (twice per locale) plus file I/O, so under a loaded CI runner a
// test can spike well past the default 5000ms per-test timeout (measured spikes of 4-11s vs a ~275ms healthy peak),
// which killed the in-flight `oxfmt` subprocess with SIGTERM and flaked the run. 30s matches the CIGitLogic timeout
// and leaves ample headroom over the worst observed contention.
setDefaultTimeout(30000);

let processExitSpy: Mock<typeof process.exit>;
let consoleErrorSpy: Mock<typeof console.error>;

Expand Down
Loading