Commit 08df2fb
committed
fix: audit remediation - monkeypatch cleanup and code quality
Key changes:
- Add cleanupMonkeypatch() to restore util.debuglog after tests
- Add guard to prevent double-patching in setupMonkeypatch()
- Use null coalescing for CI env vars (avoids 'undefined' in URLs)
- Add comments explaining design decisions (internal APIs, token exposure)
- Remove double cast in actions.ts
- Fix lazy assertions in test-prerequisites.spec.ts
- Add type guards to catch blocks in engine.ts
- Clarify schema.json boolean descriptions
- Delete TEST_COVERAGE_PLAN.md (stale)
- Add no-test-counts rule to CLAUDE.md
- Add cleanup to all test files that use prepareOptions1 parent 81f3f14 commit 08df2fb
File tree
16 files changed
+145
-384
lines changed- src
- deploy
- engine
- parameter-tests
16 files changed
+145
-384
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments