From 9e420e8010afd8c92a8fc98d927bf178b7c84b5e Mon Sep 17 00:00:00 2001 From: "alvaro.neto" <62889807+alvarogfn@users.noreply.github.com> Date: Mon, 6 May 2024 23:01:35 -0300 Subject: [PATCH] chore: update config --- vite.config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 424d5e02..1d679838 100644 --- a/vite.config.js +++ b/vite.config.js @@ -14,7 +14,18 @@ export default defineConfig({ environment: 'jsdom', globals: true, root: resolve(__dirname, ''), - reporters: ['lcov', 'json', 'html', 'json-summary'], + coverage: { + include: ['src/**/*.js'], + exclude: ['src/**/*.spec.js'], + reportOnFailure: true, + thresholds: { + lines: '0', + statements: '0', + branches: '0', + functions: '0', + }, + reporter: ['text', 'lcov', 'html', 'json', 'json-summary'], + }, include: ['src/**/*.spec.js'], setupFiles: ['src/__tests__/setup.js'], },