diff --git a/libs/test-utils-vitest/.eslintignore b/libs/test-utils-vitest/.eslintignore index 93f0e825ef..7e3559b32e 100644 --- a/libs/test-utils-vitest/.eslintignore +++ b/libs/test-utils-vitest/.eslintignore @@ -1,3 +1,3 @@ build coverage -vitest.config.mts \ No newline at end of file +vitest.config.mts diff --git a/libs/test-utils-vitest/src/index.ts b/libs/test-utils-vitest/src/index.ts index 53591e08e1..86bd782cc8 100644 --- a/libs/test-utils-vitest/src/index.ts +++ b/libs/test-utils-vitest/src/index.ts @@ -3,4 +3,4 @@ export * from './child_process.js'; export * from './console.js'; export * from './mock_kiosk.js'; export * from './mock_of.js'; -export * from './mock_use_audio_controls.js'; +export * from './mock_use_audio_controls.js'; \ No newline at end of file diff --git a/libs/test-utils-vitest/vitest.config.ts b/libs/test-utils-vitest/vitest.config.ts new file mode 100644 index 0000000000..d1ec6cc46f --- /dev/null +++ b/libs/test-utils-vitest/vitest.config.ts @@ -0,0 +1,21 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + coverage: { + thresholds: { + lines: 84, + branches: 79, + }, + provider: 'istanbul', + include: ['src/**/*.ts'], + exclude: [ + 'src/**/*.test.ts', + 'src/advance_timers.ts', + 'src/mock_of.ts', + 'src/mock_kiosk.ts', + 'src/mock_use_audio_controls.ts', + ], + }, + }, +});