Skip to content

Commit

Permalink
Update relative path for jest.setup.js file
Browse files Browse the repository at this point in the history
As the documentation says, it's better to use a relative path to reference `jest.setup.js` file.
Otherwise, it often cannot be found.
ref: https://jestjs.io/docs/en/configuration.html#setupfilesafterenv-array
  • Loading branch information
sumerokr authored and kettanaito committed Dec 11, 2020
1 parent f87f4d7 commit 7e59c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/integrate/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Open the `jest.setup.js` file and write there the same code as in the Create Rea
```js
// jest.config.js
module.exports = {
setupFilesAfterEnv: ['jest.setup.js'],
setupFilesAfterEnv: ['./jest.setup.js'],
}
```

Expand Down

0 comments on commit 7e59c1a

Please sign in to comment.