Discrepancy in Clock Time Handling: Bug or Feature?

is this a bug or a feature?
  it.scoped("test time", () =>
    gen(function* () {
      const clock = yield* Clock.Clock;
      const fixedTime = new Date(2024, 0, 1, 0, 0, 0).getTime();
      yield* TestClock.setTime(fixedTime);
      const time = yield* Clock.currentTimeMillis;
      const clockTime = yield* clock.currentTimeMillis;
      expect(time).toEqual(fixedTime); // succeeds
      expect(clockTime).toEqual(fixedTime); // fails
    }).pipe(provide(TestContext.LiveContext))
  );
Was this page helpful?