Commit c4a7e88
refactor: scale down tests (#3997)
The test structure and magic for scaling down makes it hard to make any
change. This PR refactor the tests cases in suche way
- only global default mocking
- per test explicit mocking
- per test setup test data, avoiding global data mesh
Test coverage is 100% for scale-down.
Note: Codescene warnings are not new, but a bit the fact of how jest
works
---------
Co-authored-by: Stuart Pearson <[email protected]>1 parent 2ed0b29 commit c4a7e88
File tree
2 files changed
+360
-394
lines changed- lambdas/functions/control-plane/src/scale-runners
2 files changed
+360
-394
lines changed
0 commit comments