dcx-react-library icon indicating copy to clipboard operation
dcx-react-library copied to clipboard

Occasional test failure (src/button/__tests__/Button.test.tsx)

Open cg-julian-taylor opened this issue 2 years ago • 0 comments

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:

  1. Run yarn test
  2. 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 Screenshot 2022-12-20 at 11 56 02

Additional context Occurs in CLI

git checkout release/0.8
git pull
git checkout -b 'feature/fix-random-failure-test'

cg-julian-taylor avatar Dec 20 '22 11:12 cg-julian-taylor