From 4b2126f972f260d1f9f6a5c0621958e574949f59 Mon Sep 17 00:00:00 2001 From: Lukas Lanzner Date: Wed, 30 Oct 2024 14:21:17 +0100 Subject: [PATCH] feat(test): Add frontend tests --- {tests => components/__tests__/login}/ProviderButton.test.ts | 0 vitest.config.mts | 2 ++ 2 files changed, 2 insertions(+) rename {tests => components/__tests__/login}/ProviderButton.test.ts (100%) diff --git a/tests/ProviderButton.test.ts b/components/__tests__/login/ProviderButton.test.ts similarity index 100% rename from tests/ProviderButton.test.ts rename to components/__tests__/login/ProviderButton.test.ts diff --git a/vitest.config.mts b/vitest.config.mts index 54c050e..c56bab9 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -2,6 +2,8 @@ import { defineVitestConfig } from '@nuxt/test-utils/config' export default defineVitestConfig({ test: { + globals: true, + include: ['**/*.test.ts'], environment: 'nuxt' } })