From da2f78524d9f53c9c1d68133296b4c27d097533c Mon Sep 17 00:00:00 2001 From: Sam Huynh Date: Sun, 14 Apr 2024 08:06:28 +1000 Subject: [PATCH] refactor configs (#234) * test: update test coverage config * chore: ignore unmatched file glob errors while running precommit --- .lintstagedrc.json | 2 +- vitest.config.mts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.lintstagedrc.json b/.lintstagedrc.json index ffd95b82..f0b344d7 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,3 +1,3 @@ { - "*.{ts,js}": ["biome check", "biome format --write"] + "*.{ts,js}": ["biome check --no-errors-on-unmatched", "biome format --write --no-errors-on-unmatched"] } diff --git a/vitest.config.mts b/vitest.config.mts index c6bc678a..9bb00146 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -8,8 +8,8 @@ export default defineConfig({ enabled: true, provider: 'v8', clean: true, - include: ['src/commands/**/*.ts', 'src/utils/**/*.ts'], - exclude: ['src/utils/random.*'], + include: ['src/**/*.ts'], + exclude: ['src/utils/random.*', 'src/config.ts', 'src/deploy-command.ts', 'src/clients/**.ts', 'src/commands/**/index.ts', 'src/commands/**/utils.ts'], }, clearMocks: true, setupFiles: ['./vitest.setup.ts'],