dashboard/shell/components/formatter/__tests__
Phillip Rak 8ca1783027 Use fake timers in LiveDate unit tests
This uses jest fake timers and sets a system time for the LiveDate unit tests.

While rare, there are scenarios where using the actual system time can fail the LiveDate unit test - these failures can occur if a test takes too long, or runs at an innoportune time. Making use of fake timers allows the LiveData tests to be deterministic.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-14 09:41:12 -07:00
..
Checked.test.ts Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
ClusterLink.test.ts RKE1 Clusters unsupported (#14226) 2025-05-29 13:07:00 +01:00
Date.test.ts Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
LinkDetail.test.ts Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
LiveDate.test.ts Use fake timers in LiveDate unit tests 2025-07-14 09:41:12 -07:00
PodsUsage.test.ts Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
Si.test.ts Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
WorkloadDetailEndpoints.test.ts Update unit tests 2024-08-22 16:09:54 -07:00