From 1fab5bd5e78b1e7521c8241155ba19d0b4e28499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 29 Aug 2024 08:28:34 +0100 Subject: [PATCH] test(api): Add to API Vitest config [skip pizza] --- api.planx.uk/vitest.config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api.planx.uk/vitest.config.ts b/api.planx.uk/vitest.config.ts index 503457c14d..a01ff940c0 100644 --- a/api.planx.uk/vitest.config.ts +++ b/api.planx.uk/vitest.config.ts @@ -13,8 +13,11 @@ export default defineConfig({ // html reporter required to inspect coverage in Vitest UI dashboard reporter: ["lcov", "html", "text-summary"], thresholds: { - functions: 55, - // TODO: could add autoUpdate flag here so that function coverage is only allowed to increase + statements: 72.03, + branches: 54.92, + functions: 67.62, + lines: 71.84, + autoUpdate: true, }, }, },