Merge pull request #23869 from AmbrishRamachandiran/test-jest-docs-changes
Updated Readme Document of jest testing
This commit is contained in:
@@ -26,10 +26,14 @@ To run both `MyComponent.test.tsx` and `MyControl.test.tsx` suite of tests:
|
||||
|
||||
yarn test MyCo
|
||||
|
||||
Note: if `console.logs` are not appearing, run only the individual test you are
|
||||
:::note Note
|
||||
|
||||
if `console.log`s are not appearing, run only the individual test you are
|
||||
working on.
|
||||
[This is a bug in Jest](https://github.com/facebook/jest/issues/2441).
|
||||
|
||||
:::
|
||||
|
||||
## Naming Test Files
|
||||
|
||||
Tests should be named `[filename].test.ts`, or `[filename].test.tsx` if it contains JSX (as is the case for a lot of React tests, e.g. components).
|
||||
|
||||
Reference in New Issue
Block a user