Updated Readme Document of jest testing

Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
AmbrishRamachandiran
2024-03-27 16:48:01 +05:30
parent 34783125fd
commit 2020b45342
+5 -1
View File
@@ -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.logs` 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).