Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jul 17, 2023
1 parent 0002918 commit 32afe1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next-intl/test/server/getTranslator.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import {
getFormatter,
getNow,
getTimeZone
} from '../../src/server';
} from '../../src/server.react-server';

vi.mock('next-intl/config', () => ({
default: async () =>
((await vi.importActual('../../src/server')) as any).getRequestConfig({
(
(await vi.importActual('../../src/server.react-server')) as any
).getRequestConfig({
locale: 'en',
now: new Date('2020-01-01T00:00:00.000Z'),
timeZone: 'Europe/London',
Expand Down

0 comments on commit 32afe1e

Please sign in to comment.