mirror of https://github.com/rancher/dashboard.git
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> |
||
|---|---|---|
| .. | ||
| Checked.test.ts | ||
| ClusterLink.test.ts | ||
| Date.test.ts | ||
| LinkDetail.test.ts | ||
| LiveDate.test.ts | ||
| PodsUsage.test.ts | ||
| Si.test.ts | ||
| WorkloadDetailEndpoints.test.ts | ||