Skip to content

Commit

Permalink
chore: upgrade vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 2, 2024
1 parent 2181081 commit 700bb49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"build": "unbuild && bun run ./scripts/deno.ts",
"test": "npm run test:typecheck && npm run test:unit",
"test:unit": "NODE_OPTIONS=--experimental-vm-modules vitest run ./src",
"test:typecheck": "vitest typecheck --config ./vitest.type.config.ts --run",
"test:typecheck": "vitest --typecheck --config ./vitest.type.config.ts --run",
"test:coverage": "npm test -- --reporter verbose --coverage",
"test:e2e": "run-s test:e2e:*",
"test:e2e:browser": "cd playground/browser && node --test",
Expand All @@ -102,9 +102,9 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20231016.0",
"@types/node": "^20.6.0",
"@types/node": "^20.11.24",
"@types/supertest": "^2.0.12",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/coverage-v8": "^1.3.0",
"bumpp": "^9.2.0",
"bun-types": "latest",
"cookie-es": "^1.0.0",
Expand All @@ -117,9 +117,9 @@
"supertest": "^6.3.3",
"playwright": "^1.38.1",
"pkg-types": "^1.0.2",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vitest": "^0.34.6",
"vitest": "^1.3.0",
"vitest-environment-miniflare": "^2.14.1"
}
}
3 changes: 2 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vitest/config'
import { configDefaults, defineConfig } from 'vitest/config'

export default defineConfig({
test: {
includeSource: ['src/**/*.{js,ts}'],
exclude: [...configDefaults.exclude, '**/playground/**'],
},
})

0 comments on commit 700bb49

Please sign in to comment.