0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-25 05:07:03 +01:00
hono/vitest.config.ts
Taku Amano e6913190b7
test: add router/common.case.test.ts (#2258)
* test: remove unused spy

* refactor: add "@typescript-eslint/no-explicit-any" for avoiding lint error

* test: exclude *.case.test.ts files from vitest

These special files are used to share test cases between different modules or runtime environments.
* shared among multiple routers
* shared by renderToString and renderToDom

* test: rename helper/css/common.test.tsx to helper/css/common.case.test.tsx

* test: add router/common.case.test.ts

* test: remove redundant skip field
2024-02-24 12:28:59 +09:00

17 lines
454 B
TypeScript

/// <reference types="vitest" />
import { configDefaults, defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
include: ['**/src/**/(*.)+(spec|test).+(ts|tsx|js)'],
exclude: [...configDefaults.exclude, '**/sandbox/**', '**/*.case.test.+(ts|tsx|js)'],
setupFiles: ['./src/test-utils/setup-vitest.ts'],
coverage: {
provider: 'v8',
reporter: ['text'],
},
pool: 'forks',
},
})