Commit Graph

10 Commits

Author SHA1 Message Date
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Jamie Tanna 9d5e9de4a9 fix(onboardingAutoCloseAge): correctly handle partial days elapsed (#40606)
As noted in #40604, we're seeing cases where we need to wait
`onboardingAutoCloseAge+1` days until the onboarding PR will be
auto-closed.

To fix this, we can refactor `getElapsedDays` to optionally return a
floating point number, which we can then perform more careful
calculations against.

As we're now being a little more careful with timings being used for our
date comparisons, we need to make sure that Vitest fakes our timer
during these tests.

Instead of long floating-point numbers, we should use a 2 decimal
place value for log messages, as they're more readable to humans.
2026-01-23 07:49:14 +00:00
Trim21 6e5731b554 test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
Rhys Arkins a021e9fe6d feat: currentVersionAgeInDays, newVersionAgeInDays (#31818) 2024-10-10 13:17:31 +00:00
Victor Engmark b9dc2f3506 test: time difference with time zone (#22782) 2023-06-16 07:46:08 +00:00
Michael Kriese 8e8e8a7ea2 test: remove useless jest fake timer reset (#21633) 2023-04-20 18:13:36 +00:00
Sergei Zharinov 58fe0bdc81 refactor(date): Use Jest fake timers (#21631) 2023-04-20 16:52:48 +00:00
RahulGautamSingh 135e6cd078 feat(config): rename stabilityDays to minimumReleaseAge (#21376)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-04-12 17:59:24 +00:00
RahulGautamSingh 63fde6b3bc feat(cache): pr fingerprint implementation (#18850)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-21 06:07:48 +00:00
RahulGautamSingh 79c2532a2d refactor: add new fn getElapsedHours (#19892) 2023-01-20 09:19:08 +00:00