2023-09-08 10:42:28 +02:00
|
|
|
/// <reference types="vitest" />
|
|
|
|
import { defineConfig } from 'vitest/config'
|
2024-05-31 21:17:47 +02:00
|
|
|
import config from '../../vitest.config'
|
2023-09-08 10:42:28 +02:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
test: {
|
2024-01-23 09:07:31 +01:00
|
|
|
env: {
|
|
|
|
NAME: 'Node',
|
|
|
|
},
|
2023-09-08 10:42:28 +02:00
|
|
|
globals: true,
|
2024-09-17 07:51:43 +02:00
|
|
|
include: ['**/runtime-tests/lambda/**/*.+(ts|tsx|js)'],
|
2024-06-12 12:25:37 +02:00
|
|
|
exclude: [
|
2024-09-17 07:51:43 +02:00
|
|
|
'**/runtime-tests/lambda/vitest.config.ts',
|
|
|
|
'**/runtime-tests/lambda/mock.ts',
|
|
|
|
'**/runtime-tests/lambda/stream-mock.ts',
|
2024-06-12 12:25:37 +02:00
|
|
|
],
|
2024-05-31 21:17:47 +02:00
|
|
|
coverage: {
|
|
|
|
...config.test?.coverage,
|
|
|
|
reportsDirectory: './coverage/raw/runtime-lambda',
|
|
|
|
},
|
2023-09-08 10:42:28 +02:00
|
|
|
},
|
|
|
|
})
|