From e67ed55de38de67324876f505d265bdaa0b15ec5 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 16 Mar 2022 18:47:02 +0800 Subject: [PATCH] fix(test-utils): use `beforeAll` for setup (#3696) --- packages/test-utils/src/setup/vitest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/test-utils/src/setup/vitest.ts b/packages/test-utils/src/setup/vitest.ts index 8114506749..d850232fa6 100644 --- a/packages/test-utils/src/setup/vitest.ts +++ b/packages/test-utils/src/setup/vitest.ts @@ -2,7 +2,7 @@ import type { TestHooks } from '../types' export default async function setupVitest (hooks: TestHooks) { const vitest = await import('vitest') - vitest.test('setup nuxt', hooks.setup, 60000) + vitest.beforeAll(hooks.setup, 60000) vitest.beforeEach(hooks.beforeEach) vitest.afterEach(hooks.afterEach) vitest.afterAll(hooks.afterAll)