Skip to content

Commit 5724640

Browse files
diogocezarilearnio
andauthored
Update README.md
Co-Authored-By: Nick Gavrilov <artnikpro@gmail.com>
1 parent b54b009 commit 5724640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ module.exports = {
145145

146146
## Usage with Jest
147147

148-
If you use jest to test your application, you can structure this kind of configuration to run tests:
148+
Unfortunately, `module-alias` itself would not work from Jest due to a custom behavior of Jest's `require`. But you can use it's own aliasing mechanism instead. The configuration can be defined either in `package.json` or `jest.config.js`. The example below is for `package.json`:
149149

150150
```js
151151
"jest": {

0 commit comments

Comments
 (0)