Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 57e81a2

Browse files
committed
update README.md
1 parent d9385eb commit 57e81a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ This project has unit tests support that runs on top of the [Jest](https://jestj
260260

261261
The jest unit tests will be executed right before the gatsby-build on the build flow `npm run build` or you can execute it anytime with the following commands: `npm run unit-tests`, `jest` or if you want to keep it running use `jest --watch`;
262262

263+
The jest mock files should be placed inside a directory with the given name: `__mock__`, read more about it on the [Jest Docs](https://jestjs.io/docs/en/manual-mocks).
264+
265+
About the the jest unit tests detection, it will look for the content of directories with the name `__tests__` or files with the sufix `{test|spec}.[jt]sx?`, read more about it on the [Jest Docs](https://jestjs.io/docs/en/configuration#testregex-string--arraystring).
266+
263267
### Useful links related to TypeScript + React + Jest
264268

265269
- [[GitHub] facebook/jest - TypeScript](https://github.com/facebook/jest/tree/master/examples/typescript)

0 commit comments

Comments
 (0)