From c846b0fd547a197dc6dc243937b16b3bbb4fd2d8 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', {