2023-12-17 13:17:18 +01:00
|
|
|
/// <reference types="vitest" />
|
|
|
|
import fastlyCompute from 'vite-plugin-fastly-js-compute'
|
|
|
|
import { defineConfig } from 'vitest/config'
|
2024-05-31 21:17:47 +02:00
|
|
|
import config from '../../vitest.config'
|
2023-12-17 13:17:18 +01:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [fastlyCompute()],
|
|
|
|
test: {
|
|
|
|
globals: true,
|
|
|
|
include: ['**/runtime_tests/fastly/**/(*.)+(test).+(ts|tsx)'],
|
|
|
|
exclude: ['**/runtime_tests/fastly/vitest.config.ts'],
|
2024-05-31 21:17:47 +02:00
|
|
|
coverage: {
|
|
|
|
...config.test?.coverage,
|
|
|
|
reportsDirectory: './coverage/raw/runtime-fastly',
|
|
|
|
},
|
2023-12-17 13:17:18 +01:00
|
|
|
},
|
|
|
|
})
|