ARKI_CLOCK_E001

thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.

What happened

`MockClock.advance` or `advanceAsync` got a negative or non-finite number of milliseconds.

Fix

Pass a step that is zero or more. Use `setNow` to move the mock clock back.

Check the fix

bun run test

Run it after the fix. It passes when the fix worked.

Where it comes from

Package
@arki/clock
Version
0.1.1 · next release candidate
Source
src/errors.ts:16