0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 19:26:56 +01:00
hono/.vitest.config/jsx-runtime-dom.ts
TATSUNO “Taz” Yasuhiro 8cc8a05c89
ci: Report coverage with CodeCov (#2862)
* Output coverage per each test

* Collect coverage

* Exclude test-only files

* update comment

* exclude types

* Add config

* Update bun comment

* Generate coverage in Deno
2024-06-01 04:17:47 +09:00

16 lines
394 B
TypeScript

import config from '../vitest.config'
config.esbuild = {
jsx: 'automatic',
jsxImportSource: __dirname + '/../src/jsx/dom',
}
if (config.test) {
config.test.include = [
'**/src/jsx/dom/**/(*.)+(spec|test).+(ts|tsx|js)',
'src/jsx/hooks/dom.test.tsx',
]
if (config.test.coverage) {
config.test.coverage.reportsDirectory = './coverage/raw/jsx-dom'
}
}
export default config