Commit cb4beb2
authored
Add integration tests for control plane (workerd runtime) (#73)
* feat: add integration tests for control plane using workerd runtime (#73)
Adds 14 integration tests that run inside the real workerd runtime via
@cloudflare/vitest-pool-workers, validating Worker boot, routing, HMAC
auth, D1 database operations, and Durable Objects with SQLite storage.
Tests run offline with no cloud credentials — miniflare provides local
D1 (SQLite), KV, and DO implementations.
isolatedStorage is disabled due to workers-sdk#11031 (SQLite WAL files
break the storage snapshot assertions). D1 isolation is achieved via
beforeEach cleanup instead.
* fix: lint and prettier formatting issues
* refactor: extract shared D1 cleanup helper for integration tests
Cleans all D1 tables (sessions, repo_metadata, repo_secrets) in
beforeEach instead of just sessions, preventing potential cross-test
state leaks as the test suite grows.1 parent 3718b7d commit cb4beb2
File tree
14 files changed
+1222
-7
lines changed- .github/workflows
- packages/control-plane
- test/integration
14 files changed
+1222
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
0 commit comments