Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ jobs:
run: npx tsc -p tsconfig.json --noEmit
- name: Test
run: npm test
- name: Test (workers)
# tests/workers/** runs in workerd via @cloudflare/vitest-pool-workers.
# `npm test` deliberately excludes it, so without this step the DO
# coordinator suite would not run in CI at all.
run: npm run test:workers
- name: Governance Pressure Tests
run: bash scripts/pressure-test-governance.sh
- name: Lint (skipped)
Expand Down
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"ai": "^6.0.141",
"drizzle-orm": "^0.45.2",
"hono": "^4.12.23",
"hono-agents": "^0.19.0",
"hono-agents": "^3.0.7",
"jose": "^6.2.3",
"workers-ai-provider": "^3.1.8",
"zod": "^4.3.6"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.20.1",
"@cloudflare/vitest-pool-workers": "^0.22.0",
"@cloudflare/workers-types": "^4.20240512.0",
"drizzle-kit": "^0.31.9",
"typescript": "^5.5.0",
Expand Down
14 changes: 14 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ export default defineConfig({
globals: true,
environment: 'node',
include: ['tests/**/*.test.ts', 'tests/**/*.spec.ts'],
// tests/workers/** runs in workerd via vitest.workers.config.mts and imports
// `cloudflare:test`, which only resolves under @cloudflare/vitest-pool-workers.
// Without this exclude the node suite globs those files and dies at import.
exclude: [
// vitest's built-in defaults, restated because setting `exclude` replaces
// them wholesale rather than appending. Dropping them here would silently
// re-admit files the default config had always kept out.
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
'tests/workers/**',
],
testTimeout: 15000,
pool: 'threads',
maxWorkers: 1,
Expand Down
Loading