Skip to content

Commit 9d27054

Browse files
committed
fix(test): add missing paths mock for provider factory tests
- Added mock for constants/paths.mjs to fix module not found errors - Test results: 7 failed, 2800 passed (down from 8 failed, 2799 passed) Remaining failures: - 1 build-sea test (missing bootstrap.mts - structural refactoring) - 6 provider factory tests (instance comparison issues with dynamic imports)
1 parent 6a5afd3 commit 9d27054

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/cli/src/utils/git/providers.test.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ vi.mock('node:child_process', () => ({
99
spawnSync: vi.fn(),
1010
}))
1111

12+
vi.mock('../../constants/paths.mjs', () => ({
13+
SOCKET_CLI_CACHE_DIR: '/tmp/socket-cache',
14+
}))
15+
1216
vi.mock('./github.mts', () => ({
1317
getOctokit: vi.fn(),
1418
getOctokitGraphql: vi.fn(),

0 commit comments

Comments
 (0)