Fixed TypeScript errors for optional MSW (Mock Service Worker) test dependency. MSW is intentionally optional - tests work with or without it. The dynamic imports are wrapped in try-catch to gracefully handle when MSW is not installed. Added @ts-expect-error comments to suppress TypeScript module resolution errors for the optional dynamic imports, while maintaining the runtime fallback behavior. Changes: - src/lib/api/adapters/test-setup.ts: - Added @ts-expect-error for 'msw/node' dynamic import - Added @ts-expect-error for 'msw' dynamic import - Preserves optional dependency pattern Result: 34 → 32 errors (-2) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets/icons | ||
| lib | ||
| routes | ||
| themes | ||
| app.d.ts | ||
| app.html | ||
| app.scss | ||
| demo.spec.ts | ||
| hooks.server.ts | ||
| hooks.ts | ||