headlamp
headlamp copied to clipboard
Namespace unit test failure
When running npm run test
with a namespace.test.ts test, it will fail and link to an error in a different src/lib/k8s/role.ts usage.
Note: The code within namespace.test.ts (located in frontend/src/lib/k8s) has been copied and put into the index.test.ts in the same directory, which does not fail when placed there.
Source: PR #2074
How to replicate
- Refer to the branch Here and checkout into it
- Locate the
namespace.test.ts
within frontend/src/lib/k8s - cd into frontend and run
npm run test
- press the F key when the test is done to run failed test again