From 7a0c47a31c678caf3c66a08ec2b0ba482a23cce4 Mon Sep 17 00:00:00 2001 From: Daniel Turcich Date: Sat, 10 Aug 2024 23:35:22 -0400 Subject: [PATCH] removed globals from vitest config --- pages/confirm-account.test.ts | 2 ++ pages/index.test.ts | 2 ++ pages/reset-password.test.ts | 2 ++ vitest.config.ts | 1 - 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/confirm-account.test.ts b/pages/confirm-account.test.ts index 0131ca1b..e9a3c934 100644 --- a/pages/confirm-account.test.ts +++ b/pages/confirm-account.test.ts @@ -1,3 +1,5 @@ +import { vi, describe, it, expect } from 'vitest' + import { mountSuspended } from '@nuxt/test-utils/runtime' import { getByClass } from 'root/testUtils' import confirmAccount from 'pages/confirm-account.vue' diff --git a/pages/index.test.ts b/pages/index.test.ts index 8e36d482..805789d0 100644 --- a/pages/index.test.ts +++ b/pages/index.test.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest' + import { mountSuspended } from '@nuxt/test-utils/runtime' import index from 'pages/index.vue' diff --git a/pages/reset-password.test.ts b/pages/reset-password.test.ts index 0fda2497..2e63b844 100644 --- a/pages/reset-password.test.ts +++ b/pages/reset-password.test.ts @@ -1,3 +1,5 @@ +import { vi, describe, it, expect } from 'vitest' + import { mountSuspended } from '@nuxt/test-utils/runtime' import { getByClass } from 'root/testUtils' import resetPassword from 'pages/reset-password.vue' diff --git a/vitest.config.ts b/vitest.config.ts index 1675a4da..e0d45a09 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,7 +6,6 @@ import { defineVitestConfig } from '@nuxt/test-utils/config' export default defineVitestConfig({ test: { environment: 'nuxt', - globals: true, sequence: { shuffle: true, },