Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

✅ Better snapshots tests implying stacktraces #4478

Merged
merged 3 commits into from
Nov 27, 2023
Merged

✅ Better snapshots tests implying stacktraces #4478

merged 3 commits into from
Nov 27, 2023

Conversation

dubzzz
Copy link
Owner

@dubzzz dubzzz commented Nov 27, 2023

The current snapshots implying stacktraces were luckily never displaying any stack. Indeed stacks never get displayed for the specs NoRegression and NoRegressionBigInt.

We want to make these tests able to support stacks and sanitize them as we already do for NoRegressionStack. As a consequence we extracted the helper defined in NoRegressionStack and used it for the others.

Category:

  • ✨ Introduce new features
  • 📝 Add or update documentation
  • ✅ Add or update tests
  • 🐛 Fix a bug
  • 🏷️ Add or update types
  • ⚡️ Improve performance
  • Other(s): ...

Potential impacts:

  • Generated values
  • Shrink values
  • Performance
  • Typings
  • Other(s): ...

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
The current snapshots implying stacktraces were luckily never displaying any stack. Indeed stacks never get displayed for the specs NoRegression and NoRegressionBigInt.

We want to make these tests able to support stacks and sanitize them as we already do for NoRegressionStack. As a consequence we extracted the helper defined in NoRegressionStack and used it for the others.
Copy link

codesandbox-ci bot commented Nov 27, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4a55767:

Sandbox Source
JavaScript Configuration
@fast-check/examples Configuration

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ca447e0) 93.57% compared to head (4a55767) 93.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4478   +/-   ##
=======================================
  Coverage   93.57%   93.57%           
=======================================
  Files         207      207           
  Lines        5013     5013           
  Branches     1368     1368           
=======================================
  Hits         4691     4691           
  Misses        322      322           
Flag Coverage Δ
unit-tests 93.57% <ø> (ø)
unit-tests-18.x-Linux 93.57% <ø> (+0.01%) ⬆️
unit-tests-20.x-Linux 93.57% <ø> (ø)
unit-tests-latest-Linux 93.57% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dubzzz dubzzz enabled auto-merge (squash) November 27, 2023 20:52
@dubzzz dubzzz merged commit dfd3497 into main Nov 27, 2023
@dubzzz dubzzz deleted the better-snaps branch November 27, 2023 20:57
dubzzz added a commit that referenced this pull request Nov 27, 2023
The current snapshots implying stacktraces were luckily never displaying any stack. Indeed stacks never get displayed for the specs NoRegression and NoRegressionBigInt.

We want to make these tests able to support stacks and sanitize them as we already do for NoRegressionStack. As a consequence we extracted the helper defined in NoRegressionStack and used it for the others.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant