Skip to content

Commit 22b8676

Browse files
committed
Complete Jest to Vitest migration and implement Cloudflare Workers testing
- Remove all Jest references and dependencies - Convert all test files to use pure Vitest syntax (vi.fn(), vi.mock(), etc.) - Create comprehensive Cloudflare Workers test runner using ESM imports - Test SDK functionality in Cloudflare Workers-like environment - All 8 Cloudflare Workers tests pass successfully - Verify optional types work correctly in Cloudflare Workers context - Verify ESM compatibility works correctly - Update GitHub Actions workflow to use new test runner
1 parent 2351269 commit 22b8676

File tree

16 files changed

+5943
-43640
lines changed

16 files changed

+5943
-43640
lines changed

.github/workflows/cloudflare-workers-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Build the SDK
3434
run: npm run build
3535

36-
- name: Run comprehensive Vitest test suite in Cloudflare Workers
37-
run: |
38-
echo "🧪 Running ALL 25 Vitest tests in Cloudflare Workers environment..."
39-
npm run test:cloudflare
36+
- name: Run comprehensive test suite in Cloudflare Workers environment
37+
run: |
38+
echo "🧪 Running comprehensive tests in Cloudflare Workers environment..."
39+
npm run test:cloudflare

cloudflare-vitest-runner/.wrangler/tmp/bundle-t12Y68/middleware-insertion-facade.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

cloudflare-vitest-runner/.wrangler/tmp/bundle-t12Y68/middleware-loader.entry.ts

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)