1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +01:00
unleash.unleash/frontend/src
Thomas Heartman fd1ad31bb5
fix: make traffic usage test more robust by using this month's actual numbers (#9193)
The test was breaking because it assumed a month would have at least
30 days.

Because the test relies on the current month, this isn't necessarily
true.

Further, there's parts of the code that relies on "impure" state via
the "current date" (which will change based on when you run it), so
setting a specific month in the test won't work.

As such, this test makes the calculation explicit and uses the number
of days in the current month.
2025-02-03 13:29:07 +00:00
..
__mocks__ refactor: format files (#719) 2022-02-18 09:51:10 +01:00
assets feat: New in Unleash - Lifecycle 2.0 (#9112) 2025-01-20 11:50:44 +00:00
component fix(1-3334): re-align the dropdown menu with the dropdown (#9188) 2025-02-03 11:00:15 +01:00
constants feat: use new environment limit in Unleash UI (#7500) 2024-07-02 06:14:15 +00:00
contexts chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
hooks fix: make traffic usage test more robust by using this month's actual numbers (#9193) 2025-02-03 13:29:07 +00:00
interfaces feat: configurable global font size (#9155) 2025-01-27 14:43:32 +01:00
openapi chore(1-3267): add orval schemas for the new API endpoint (#9164) 2025-01-29 09:11:29 +01:00
themes chore: upgrade to biome 1.9.4 (#8616) 2024-10-31 15:24:22 +01:00
types chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
utils chore: update release plans icon (#8894) 2024-12-02 11:51:18 +00:00
index.tsx fix: send UI error tracking (#8725) 2024-11-13 16:13:05 +01:00
setupTests.ts chore: scroll-related UX adjustments in the Unleash AI chat (#8478) 2024-10-18 14:38:46 +01:00
vite-env.d.ts refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00