mirror of
https://github.com/honojs/hono.git
synced 2024-11-24 02:07:30 +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
18 lines
513 B
TypeScript
18 lines
513 B
TypeScript
/// <reference types="vitest" />
|
|
import fastlyCompute from 'vite-plugin-fastly-js-compute'
|
|
import { defineConfig } from 'vitest/config'
|
|
import config from '../../vitest.config'
|
|
|
|
export default defineConfig({
|
|
plugins: [fastlyCompute()],
|
|
test: {
|
|
globals: true,
|
|
include: ['**/runtime_tests/fastly/**/(*.)+(test).+(ts|tsx)'],
|
|
exclude: ['**/runtime_tests/fastly/vitest.config.ts'],
|
|
coverage: {
|
|
...config.test?.coverage,
|
|
reportsDirectory: './coverage/raw/runtime-fastly',
|
|
},
|
|
},
|
|
})
|