From 08eab0cbbcf0ac2dc605c45612e8f88fb36ebf09 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 14 Nov 2024 14:07:18 +0100 Subject: [PATCH] Polyfill Intl.* in tests --- src/vitest.setup.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vitest.setup.ts b/src/vitest.setup.ts index 596453ed2..72304b2e8 100644 --- a/src/vitest.setup.ts +++ b/src/vitest.setup.ts @@ -6,6 +6,8 @@ Please see LICENSE in the repository root for full details. */ import "global-jsdom/register"; +import "@formatjs/intl-durationformat/polyfill"; +import "@formatjs/intl-segmenter/polyfill"; import i18n from "i18next"; import posthog from "posthog-js"; import { initReactI18next } from "react-i18next";