Skip to content

Commit 91eaa79

Browse files
authored
docs: Update testing.mdx (#1798)
1 parent 1488bce commit 91eaa79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/docs/environments/testing.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To avoid having to mock server components, it can be beneficial to define compon
2929

3030
Vitest correctly assumes a file extension though, therefore for the time being, if you're using [`createNavigation`](/docs/routing/navigation), you need to ask Vitest to process imports within `next-intl`:
3131

32-
```tsx
32+
```tsx filename="vitest.config.mts"
3333
import {defineConfig} from 'vitest/config';
3434

3535
export default defineConfig({
@@ -48,7 +48,7 @@ export default defineConfig({
4848

4949
Since Jest doesn't have built-in ESM support, you need to instruct Jest to transform imports from `next-intl`:
5050

51-
```tsx
51+
```tsx filename="jest.config.js"
5252
const nextJest = require('next/jest');
5353

5454
const createJestConfig = nextJest({dir: './'});

0 commit comments

Comments
 (0)