Commit 085f22c
authored
🤖 ci: fix coverage step errors and environment mismatches (#715)
Fixes spurious coverage collection errors in CI.
## Changes
- **Coverage Config**: Excluded `src/browser/api.ts` (browser-only deps)
and `src/cli/**/*` from Jest coverage.
- **Jest Compatibility**: Swapped `import.meta.env.DEV` for
`process.env.NODE_ENV` in `MapStore.ts` and `useGitBranchDetails.ts` to
allow these files to be parsed by Jest without syntax errors.
- **TS Config**: Updated Jest's TS target to `ES2023` to support modern
methods like `Array.prototype.at()`.
_Generated with mux_1 parent fec2bfc commit 085f22c
File tree
3 files changed
+9
-6
lines changed- src/browser
- components/hooks
- stores
3 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments