Skip to content

Commit

Permalink
Add language definition to updated testing documentation, Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
angelopoole committed Oct 6, 2021
1 parent 892a58f commit a169a64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit a169a64

Please sign in to comment.