1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 08:14:07 +02:00

migrate sinonjs/fake-timers

This commit is contained in:
kakkokari-gtyih
2025-05-27 17:11:36 +09:00
parent ac61d49873
commit deebcb29da
3 changed files with 6 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ describe('Chart', () => {
testIntersectionChart = new TestIntersectionChart(db, redisClient, logger);
clock = lolex.install({
// https://github.com/sinonjs/sinon/issues/2620
toFake: Object.keys(lolex.timers).filter((key) => !['nextTick', 'queueMicrotask'].includes(key)) as lolex.FakeMethod[],
now: new Date(Date.UTC(2000, 0, 1, 0, 0, 0)),
shouldClearNativeTimers: true,
});