Which test frameworks are currently supported? Please specify.
I'd like to use ava
Would just require support for async/await for Time.run() I think?
Thanks.
// Ava test
test('Counter', async t => {
const Time = mockTimeSource();
Time.assertEqual(count$, expectedCount$)
await Time.run();
});
In the code for time-driver.js, I see the following
_runVirtually: function (done, timeToRunTo) so it looks like it currently requires a done callback argument for proper async
But then I also see time-source where the cb argument is optional
export interface MockTimeSource extends TimeSource {
// ...
run (cb?: (err?: Error) => void): void;
}