We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b535cb5 commit 55f2d82Copy full SHA for 55f2d82
packages/react-datetime-picker/vitest.setup.ts
@@ -1,8 +1,15 @@
1
-import { afterEach } from 'vitest';
+import { afterEach, beforeEach } from 'vitest';
2
import { cleanup } from '@testing-library/react';
3
import '@testing-library/jest-dom/vitest';
4
import 'vitest-canvas-mock';
5
6
+// Workaround for a bug in Vitest 3 or happy-dom
7
+const IntlNumberFormat = Intl.NumberFormat;
8
+
9
+beforeEach(() => {
10
+ Intl.NumberFormat = IntlNumberFormat;
11
+});
12
13
afterEach(() => {
14
cleanup();
15
});
0 commit comments