Commit 3ec4bb4
test(fmdapi): add mock infrastructure for unit tests
- Create capture script for recording live API responses
- Add mock-fetch utility for mocking global fetch in tests
- Reorganize tests: move E2E tests to tests/e2e/
- Create mock-based unit tests that don't require live FM server
- Update vitest config to exclude E2E tests by default
- Add test:e2e and capture scripts to package.json
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent e004b71 commit 3ec4bb4
File tree
11 files changed
+1706
-208
lines changed- packages/fmdapi
- scripts
- tests
- e2e
- fixtures
- utils
11 files changed
+1706
-208
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments