From ddd5f50998f83d3ddd69a4692e0fbf7f84ff025c Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Thu, 12 Jun 2025 16:36:57 +0800 Subject: [PATCH] fix tests --- next-ui/src/utils/i18n/locale-helper.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/next-ui/src/utils/i18n/locale-helper.test.ts b/next-ui/src/utils/i18n/locale-helper.test.ts index 3fbf269a..73c7e217 100644 --- a/next-ui/src/utils/i18n/locale-helper.test.ts +++ b/next-ui/src/utils/i18n/locale-helper.test.ts @@ -1,9 +1,9 @@ -import { beforeAll, expect, test, vi } from 'vitest' +import { beforeEach, expect, test, vi } from 'vitest' import { loadLocale, defaultLocale, setLocale, getLocale, availableLocales } from './locale-helper' -beforeAll(() => { +beforeEach(() => { // mock the available locales, as locales are checked against what's available - vi.mock('../i18n?dir2json&ext=.json&1', () => { + vi.mock('@/i18n?dir2json&ext=.json&1', () => { return { default: { en: {