From 8e1eb8c0ad5d74a23c2696fdac2ac581bc8ed2fe Mon Sep 17 00:00:00 2001 From: Hezekiah Hendry Date: Sun, 28 Apr 2024 16:09:04 -0400 Subject: [PATCH] chore(vitest): cleanup config --- scripts/vitest.config.ts | 8 ++------ vitest.config.ts | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/scripts/vitest.config.ts b/scripts/vitest.config.ts index df0a3361..063fe023 100644 --- a/scripts/vitest.config.ts +++ b/scripts/vitest.config.ts @@ -1,20 +1,16 @@ import type { ESBuildOptions } from 'vite'; -import { defineConfig, UserConfig } from 'vitest/config'; +import { UserConfig, configDefaults, defineConfig } from 'vitest/config'; export const createVitestConfig = (options: UserConfig = {}) => defineConfig({ ...options, test: { ...options?.test, - deps: { - inline: [/^(?!.*vitest).*$/] - }, globals: true, coverage: { ...options.test?.coverage, enabled: true, - reporter: ['text', 'lcov', 'clover'], - exclude: [...(options.test?.coverage?.exclude ?? []), '**/node_modules/**', '**/dist/**', '**/tests/**'] + exclude: [...(options.test?.coverage?.exclude ?? []), ...configDefaults.exclude, '**/tests/**', '**/.yarn/**', '**/scripts/**'] } }, esbuild: { diff --git a/vitest.config.ts b/vitest.config.ts index 873e8cf2..5d5aa747 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,11 +1,6 @@ import { createVitestConfig } from './scripts/vitest.config'; export default createVitestConfig({ - test: { - deps: { - inline: [/^(?!.*vitest).*$/] - } - }, esbuild: { target: 'es2022' }