Commit fb297a5
committed
fix: build SDK before running tests in CI
The test jobs run individual test files with 'bun test <file>', which bypasses
the package.json pretest hook. This caused npm-app tests to fail with 'Cannot
find module @codebuff/sdk' because the SDK wasn't built.
Changes:
- Added 'Build SDK before tests' step in test job
- Added 'Build SDK before integration tests' step in test-integration job
- This ensures SDK dist artifacts (index.mjs, index.cjs, vendor/) exist
before tests that depend on @codebuff/sdk are executed
Root cause: CI test command bypasses npm hooks by running test files directly.1 parent 2059a9c commit fb297a5
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
| |||
0 commit comments