Commit 6a5afd3
committed
fix(test): fix constructor mocks and add missing canSelfUpdate export
GitLab provider tests:
- Changed Gitlab mock from arrow function to regular function in providers.test.mts
- Ensures constructor can be called with 'new' keyword
Self-update tests:
- Added missing canSelfUpdate export to detect.mjs mock
- Added canSelfUpdate import to test file
Test improvements:
- Fixed 19 self-update test failures
- Fixed 5 GitLab provider constructor failures
- Test results: 8 failed, 2799 passed (down from 27 failed, 2780 passed)
Remaining failures are pre-existing issues:
- 1 build-sea test (missing bootstrap.mts from structural refactoring)
- 2 GitLab provider tests (factory pattern issues)1 parent 0446735 commit 6a5afd3
2 files changed
Lines changed: 18 additions & 12 deletions
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments