Unit test case for details-view-command-bar.test is failing due to mismatched dates between saved snapshot and rendered object. Rendered object always takes the current date. Mocked the date in the test case to return specific date instead of current date.
Motivation
Context
Pull request checklist
[n/a] Addresses an existing issue: #0000
[x] Ran yarn fastpass
[x] Added/updated relevant unit test(s) (and ran yarn test)
[x] Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
[x] PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
[n/a] (UI changes only) Added screenshots/GIFs to description above
[n/a] (UI changes only) Verified usability with NVDA/JAWS
Details
Unit test case for details-view-command-bar.test is failing due to mismatched dates between saved snapshot and rendered object. Rendered object always takes the current date. Mocked the date in the test case to return specific date instead of current date.
Motivation
Context
Pull request checklist
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). SeeCONTRIBUTING.md
.