fix tests

This commit is contained in:
Gauthier Roebroeck 2025-06-12 16:36:57 +08:00
parent e49e3abf89
commit ddd5f50998

View file

@ -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: {