From 1dd4f53cf46e25d3ea45891b5caa126b3b885ec2 Mon Sep 17 00:00:00 2001 From: Rubu Jam Date: Mon, 15 Jul 2024 13:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test:=20`deps.inline`=20uses=20`ser?= =?UTF-8?q?ver.deps.inline`=20instead=20(#3220)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vitest.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vitest.config.ts b/vitest.config.ts index 6b6665164204..20666906aa83 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -24,9 +24,6 @@ export default defineConfig({ reporter: ['text', 'json', 'lcov', 'text-summary'], reportsDirectory: './coverage/app', }, - deps: { - inline: ['vitest-canvas-mock'], - }, environment: 'happy-dom', exclude: [ '**/node_modules/**', @@ -36,6 +33,11 @@ export default defineConfig({ 'src/server/modules/**/**', ], globals: true, + server: { + deps: { + inline: ['vitest-canvas-mock'], + }, + }, setupFiles: './tests/setup.ts', }, });