Commit ad4e54d
ci(portal): fix coverage path (fast-check + denominator), add skills symlink (#18)
Portal test-infra fixes exposed by the invariant-first refactor (#6); the S1
timeout itself is fixed separately by #19, so this no longer touches
portal-shell.test.ts.
- scripts/sync-upstream.sh: the --coverage branch never provisioned fast-check
(only --test did), so the 5 property-test files failed with "Failed to load
url fast-check" — the coverage path is broken on main today. Extract a shared
provision_fastcheck() called by both branches; in --coverage AFTER `pnpm add`
(which re-resolves node_modules and would prune the manually-copied tree).
- vite.portal.config.ts: coverage `include` was a stale hand-list of 5 files;
the refactor's 10 new portal-*.ts modules were silently dropped from the
denominator. Switch to a glob matching the copy step (portal*.ts + realtime*.ts)
with exclude ['**/*.test.ts'].
- .claude/skills -> .agents/skills: a single directory-level symlink so any skill
added under the tracked .agents/skills/ is picked up automatically (force-added
past the .claude/ gitignore).
Verified: --test 140/140; --coverage 140/140 (fast-check provisioned, 94.86%
stmts / 85.11% branches / 95.89% funcs on the full glob denominator).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8301386 commit ad4e54d
3 files changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| |||
0 commit comments