figmar
a6dd8aa42a
fix(test): add missing devDeps + sourcemap transform + jsdom directives
WorkBuddy review found 38 of 131 spec files failed at collection time
(0 tests executed) — the '1015 passed' was a false green because vitest
only counts 'Tests failed', not 'Test Files failed'.
Root cause: dsh-client-ui-primitives@0.2.0-rc.2 declares dependencies:null
but statically imports 23 external root packages. Our project declared
only 18. Under pnpm strict layout, the missing 5 (dsh-client-store,
dsh-util-code-language, dsh-util-workspace-path, diff, simple-icons)
were unresolvable when Vite inlined the primitives package.
Fixes:
- Add 7 missing devDeps: dsh-client-store@0.2.0-rc.2,
dsh-util-code-language@0.2.0-rc.2, dsh-util-workspace-path@0.2.0-rc.2,
diff@9.0.0, simple-icons@16.35.0, zustand@5.0.15, immer@11.1.21
- vitest.config.ts: add transform plugin to strip sourceMappingURL
comments from dsh-client-ui-primitives (upstream ships lib/index.js
with trailing sourceMappingURL but package.json files excludes .map)
- 5 spec files: add @vitest-environment jsdom directive (they import
dsh-client-ui-primitives which calls window.addEventListener at module
load; node environment lacks window)
- Remove empty .map file hack from node_modules (ineffective + .gitignore
blocks it from version control)
Result: Test Files 131 passed (131), Tests 1367 passed | 9 skipped,
EXIT=0.
Verified: simple-icons 25 named exports all present.
Typecheck + build pass.
2026-10-11 19:33:01 +08:00
..
2026-10-03 22:51:09 +08:00
2026-10-03 22:51:09 +08:00
2026-09-03 20:29:50 +08:00
2026-08-27 21:44:04 +08:00
2026-09-11 16:37:03 +08:00
2026-09-10 18:21:09 +08:00
2026-09-10 21:28:22 +08:00
2026-10-11 19:33:01 +08:00
2026-08-15 00:28:59 +08:00
2026-09-09 11:15:30 +08:00
2026-09-03 12:04:35 +08:00
2026-08-21 23:49:13 +08:00
2026-08-12 18:27:28 +08:00
2026-08-20 02:09:36 +08:00
2026-08-11 19:28:48 +08:00
2026-08-11 19:28:48 +08:00
2026-10-11 19:33:01 +08:00
2026-09-11 15:28:49 +08:00
2026-09-09 23:09:48 +08:00
2026-09-01 18:23:28 +08:00
2026-09-04 14:13:34 +08:00
2026-09-03 20:00:08 +08:00
2026-09-03 20:29:59 +08:00
2026-10-03 22:51:09 +08:00
2026-08-29 15:31:13 +08:00
2026-08-21 01:28:17 +08:00
2026-09-03 12:04:35 +08:00
2026-09-07 23:51:10 +08:00
2026-09-01 23:05:26 +08:00
2026-09-07 23:51:06 +08:00
2026-09-03 17:32:04 +08:00
2026-09-09 15:18:06 +08:00
2026-08-11 11:16:36 +08:00
2026-09-09 15:18:06 +08:00
2026-09-11 15:28:49 +08:00
2026-09-03 12:04:35 +08:00
2026-09-04 20:28:35 +08:00
2026-09-02 10:55:03 +08:00
2026-09-04 22:08:02 +08:00
2026-09-03 12:04:35 +08:00
2026-08-18 18:05:01 +08:00
2026-08-22 22:50:13 +08:00
2026-09-04 22:08:02 +08:00
2026-08-23 02:50:37 +08:00
2026-08-16 23:35:57 +08:00
2026-08-16 23:35:57 +08:00
2026-08-29 15:31:08 +08:00
2026-09-03 12:04:35 +08:00
2026-10-03 22:51:09 +08:00
2026-10-03 22:51:09 +08:00
2026-10-03 23:15:44 +08:00
2026-10-03 23:15:44 +08:00
2026-08-16 23:35:57 +08:00
2026-08-12 01:16:20 +08:00
2026-10-03 22:51:09 +08:00
2026-09-02 21:43:34 +08:00
2026-09-01 16:01:34 +08:00
2026-09-09 15:18:06 +08:00
2026-09-03 12:04:35 +08:00
2026-08-15 15:05:06 +08:00
2026-09-01 16:01:34 +08:00
2026-09-11 15:28:49 +08:00
2026-10-11 19:33:01 +08:00
2026-10-11 19:33:01 +08:00
2026-09-06 21:53:49 +08:00
2026-08-24 12:05:14 +08:00
2026-08-23 22:02:47 +08:00
2026-09-09 15:18:06 +08:00
2026-09-03 10:42:56 +08:00
2026-09-03 12:04:35 +08:00
2026-09-09 15:18:06 +08:00
2026-08-18 01:22:28 +08:00
2026-09-03 12:04:35 +08:00
2026-08-18 01:22:28 +08:00
2026-10-03 22:51:09 +08:00
2026-09-03 19:59:00 +08:00
2026-09-03 10:32:34 +08:00
2026-09-02 10:27:43 +08:00
2026-08-14 14:53:03 +08:00
2026-09-03 12:04:35 +08:00
2026-08-22 23:19:17 +08:00
2026-09-09 15:18:06 +08:00
2026-09-03 20:00:08 +08:00
2026-10-04 00:08:13 +08:00
2026-08-16 23:35:57 +08:00
2026-09-09 15:18:06 +08:00
2026-08-16 23:35:57 +08:00
2026-09-03 19:59:00 +08:00
2026-10-03 22:51:09 +08:00
2026-09-09 15:18:06 +08:00
2026-08-16 23:06:44 +08:00
2026-10-03 22:51:09 +08:00
2026-09-08 21:21:30 +08:00
2026-09-06 23:46:46 +08:00
2026-09-03 10:00:13 +08:00
2026-09-09 23:09:48 +08:00
2026-10-11 19:33:01 +08:00
2026-08-13 01:39:59 +08:00
2026-09-03 12:04:35 +08:00
2026-09-09 15:18:06 +08:00
2026-09-02 23:20:17 +08:00
2026-08-16 16:24:28 +08:00
2026-09-09 11:15:30 +08:00
2026-09-03 19:59:00 +08:00
2026-09-03 12:04:35 +08:00
2026-09-09 15:18:06 +08:00
2026-09-10 17:13:21 +08:00
2026-09-09 15:18:06 +08:00
2026-09-09 15:18:06 +08:00
2026-09-09 11:15:30 +08:00
2026-10-11 18:25:35 +08:00
2026-10-11 18:25:35 +08:00
2026-09-09 11:15:30 +08:00
2026-09-03 20:00:08 +08:00
2026-10-11 16:52:48 +08:00
2026-09-09 15:18:06 +08:00
2026-09-09 11:15:30 +08:00
2026-08-22 15:34:05 +08:00
2026-09-03 12:04:35 +08:00
2026-08-13 09:06:55 +08:00
2026-09-03 12:04:35 +08:00
2026-09-02 21:43:34 +08:00
2026-09-09 15:18:06 +08:00
2026-09-09 15:18:06 +08:00
2026-09-09 15:18:06 +08:00
2026-08-26 21:40:32 +08:00
2026-10-03 22:51:09 +08:00
2026-08-29 15:49:35 +08:00
2026-08-27 21:44:32 +08:00
2026-09-09 13:37:08 +08:00
2026-09-03 12:04:24 +08:00
2026-09-11 15:28:49 +08:00
2026-08-21 01:28:17 +08:00
2026-09-09 14:29:44 +08:00
2026-09-09 11:15:30 +08:00
2026-10-03 22:51:09 +08:00
2026-08-20 18:28:57 +08:00
2026-08-21 01:28:17 +08:00