From ccd3fbf0f36e9fcbecfeb9f46ab1a285fcff7cf1 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 24 Sep 2024 16:47:12 -0700 Subject: [PATCH] Docs: Fix jest configuration with babel (#70427) Closes: https://github.com/vercel/next.js/pull/58589/files --- docs/02-app/01-building-your-application/08-testing/02-jest.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/08-testing/02-jest.mdx b/docs/02-app/01-building-your-application/08-testing/02-jest.mdx index cfa38ae8e3717..28692ad64bd06 100644 --- a/docs/02-app/01-building-your-application/08-testing/02-jest.mdx +++ b/docs/02-app/01-building-your-application/08-testing/02-jest.mdx @@ -129,7 +129,7 @@ module.exports = { // Handle image imports // https://jestjs.io/docs/webpack#handling-static-assets - '^.+\\.(png|jpg|jpeg|gif|webp|avif|ico|bmp|svg)$/i': `/__mocks__/fileMock.js`, + '^.+\\.(png|jpg|jpeg|gif|webp|avif|ico|bmp|svg)$': `/__mocks__/fileMock.js`, // Handle module aliases '^@/components/(.*)$': '/components/$1',