Commit 6c3f2da
test: fix CCR menu tests by properly mocking file system checks
- Add mock for existsSync from node:fs module
- Ensure CCR config file existence check passes in tests
- Mock returns true for CCR config file to enable menu options 2-6
- All 10 CCR menu tests now pass correctly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 76c93bd commit 6c3f2da
1 file changed
Lines changed: 5 additions & 0 deletions
File tree
- tests/utils/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
0 commit comments