Skip to content

Commit b32d08e

Browse files
authored
chore(docs): modified file-mock path for typescript config on unit-te… (#32390)
1 parent 7480849 commit b32d08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/how-to/testing/unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const paths = pathsToModuleNameMapper(compilerOptions.paths, {
273273
```js:title=jest.config.js
274274
moduleNameMapper: {
275275
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
276-
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `<rootDir>/tests/file-mock.js`,
276+
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `<rootDir>/__mocks__/file-mock.js`,
277277
...paths,
278278
},
279279
```

0 commit comments

Comments
 (0)