From 2020b45342e2e80b57c480100c192af8cba193bc Mon Sep 17 00:00:00 2001 From: AmbrishRamachandiran Date: Wed, 27 Mar 2024 16:48:01 +0530 Subject: [PATCH] Updated Readme Document of jest testing Signed-off-by: AmbrishRamachandiran --- docs/plugins/testing.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/plugins/testing.md b/docs/plugins/testing.md index 3a7da2d410..7213cdcdb0 100644 --- a/docs/plugins/testing.md +++ b/docs/plugins/testing.md @@ -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).