A test timeout is set above the largest value timers accept, which Mocha takes to mean no timeout

tx0/ts:oversized-test-timeoutrecommendedwarningmaintainability/testsdepth fastbug

What it finds

Timers in JavaScript hold at most 2147483647 milliseconds. Mocha treats a larger this.timeout(...) as switching the timeout off, so the test can hang forever while the code suggests a limit. this.timeout(0) says so plainly.

Reported are this.timeout and jest.setTimeout calls with a number above 2147483647.

From the rule's source, oversized_test_timeout.rs.

Example from the rule's tests
describe("slow", function () {  this.timeout(99999999999);tx0 reports: this timeout is larger than timers allow  this.timeout(5000);});
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/ts:oversized-test-timeout" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/ts:oversized-test-timeout] reason="..."

tx0 explain tx0/ts:oversized-test-timeout shows the same in the terminal. Found a false positive? Report it.