From a3801fb03ab560077f42103e7a5633706155cab4 Mon Sep 17 00:00:00 2001 From: Edoardo Scibona <12040076+velut@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:49:35 +0200 Subject: [PATCH] test: setup vitest --- .vscode/settings.json | 3 ++- vitest.config.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 vitest.config.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 06f680d..4e02be8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,7 @@ "remoteip", "scibona", "siteverify", - "tsup" + "tsup", + "vitest" ] } diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..25e17f6 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + testTimeout: 10000, + coverage: { include: ["src/**"] }, + }, +});