headlamp icon indicating copy to clipboard operation
headlamp copied to clipboard

Namespace unit test failure

Open vyncent-t opened this issue 8 months ago • 0 comments

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.

image

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

vyncent-t avatar Jun 21 '24 17:06 vyncent-t