dcx-react-library
dcx-react-library copied to clipboard
Occasional test failure (src/button/__tests__/Button.test.tsx)
Describe the bug
On occasion when running yarn test
(src/button/tests/Button.test.tsx) fails on line 136.
Could be related to the handleClick()
setTimeout.
To Reproduce Steps to reproduce the behavior:
- Run
yarn test
- Keep running the above command until (src/button/tests/Button.test.tsx) fails (line 136).
Expected behavior The test should run every time. However on occasions it fails.
Screenshots
Additional context Occurs in CLI
git checkout release/0.8
git pull
git checkout -b 'feature/fix-random-failure-test'