From a169a64e3270267bbb4ba7a9db2dd8da6254ee5f Mon Sep 17 00:00:00 2001 From: Angelo Poole Date: Wed, 6 Oct 2021 19:56:03 -0400 Subject: [PATCH] Add language definition to updated testing documentation, Fix lint error --- docs/testing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index 55b2f9bc113b6..9ca6c5e417106 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -214,12 +214,12 @@ These files aren't useful in tests but importing them may cause errors, so we wi module.exports = {}; ``` -If you're running into the issue ``Failed to parse src "test-file-stub" on `next/image`` add a '/' to your fileMock. +If you're running into the issue `` Failed to parse src "test-file-stub" on `next/image `` add a '/' to your fileMock. -``` +```json // __mocks__/fileMock.js -(module.exports = "/test-file-stub" +(module.exports = "/test-file-stub") ``` For more information on handling static assets, please refer to the [Jest Docs](https://jestjs.io/docs/webpack#handling-static-assets).