mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 03:40:50 +01:00
8cc8a05c89
* Output coverage per each test * Collect coverage * Exclude test-only files * update comment * exclude types * Add config * Update bun comment * Generate coverage in Deno
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vitest/config'
|
|
import config from '../../vitest.config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
env: {
|
|
NAME: 'Node',
|
|
},
|
|
globals: true,
|
|
include: ['**/runtime_tests/lambda-edge/**/*.+(ts|tsx|js)'],
|
|
exclude: ['**/runtime_tests/lambda-edge/vitest.config.ts'],
|
|
coverage: {
|
|
...config.test?.coverage,
|
|
reportsDirectory: './coverage/raw/runtime-lambda-edge',
|
|
},
|
|
},
|
|
})
|