Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ignore variable values when checking mocks with npm test #1166

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Dec 4, 2024

Preview Tests

This is to avoid unnecessary snapshot failures, such as in #1165

  • Ignore lastEdited value when creating review pages in test
  • Ignore commit and commitDescription values when creating review index page in test

Those values had to be derived from the source folder rather than the tests' mock data so no need to track

@IsaDC
Copy link
Contributor

IsaDC commented Dec 4, 2024

Thanks @howard-e! This looks good, and fixes the issue we discussed. Approved.

@howard-e howard-e merged commit 9a5f98d into master Dec 4, 2024
7 checks passed
@howard-e howard-e deleted the remove-lastEdited-from-mock branch December 4, 2024 18:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: In production / Completed
Development

Successfully merging this pull request may close these issues.

2 participants