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,
|
2024-09-17 07:51:43 +02:00
|
|
|
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
|
|
|
},
|
|
|
|
})
|