From 25a53a0cc63d888281b78fed350ef94e2b5d5a10 Mon Sep 17 00:00:00 2001 From: Yoann Fleury Date: Mon, 21 Oct 2024 13:36:49 +0200 Subject: [PATCH] fix: add dayjs config in test --- src/tests/setup.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/setup.ts b/src/tests/setup.ts index aca6f39de..2f62e7c81 100644 --- a/src/tests/setup.ts +++ b/src/tests/setup.ts @@ -1,6 +1,8 @@ import { cleanup } from '@testing-library/react'; import { afterEach, vi } from 'vitest'; +import '@/lib/dayjs/config'; + afterEach(cleanup); Object.defineProperty(window, 'matchMedia', {