From bc054fc854914c566eaffaaebe76792f5d50ae8d Mon Sep 17 00:00:00 2001 From: Maxw Morgan Date: Fri, 8 Sep 2023 11:30:06 -0400 Subject: [PATCH] Add testing docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1d6b0b02..918d652f 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,15 @@ This project was created using: 4. Build storybook. ``` $ yarn build-storybook + ``` + +### Testing + +Use Storybooks [built-in test-runner](https://storybook.js.org/docs/react/writing-tests/test-runner): + +1. Run a local instance of storybook in one process. + +2. Invoke the test runner in another. Note: depending on the power of you machine, you may have to reduce concurrent workers to avoid test timeout failures. Use `--maxWorkers=2` to limit the workers to two. + ``` + $ yarn test-storybook ``` \ No newline at end of file