Skip to content

Commit 421b233

Browse files
committed
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.
1 parent 3718b7d commit 421b233

13 files changed

Lines changed: 1220 additions & 7 deletions

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ jobs:
130130
- name: Run control-plane tests
131131
run: npm test -w @open-inspect/control-plane
132132

133+
- name: Install workerd runtime dependency
134+
run: sudo apt-get update && sudo apt-get install -y libc++1
135+
136+
- name: Run control-plane integration tests
137+
run: npm run test:integration -w @open-inspect/control-plane
138+
133139
- name: Run web tests
134140
run: npm test -w @open-inspect/web
135141

0 commit comments

Comments
 (0)