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

Drop tape catch #2995

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Drop tape catch #2995

merged 3 commits into from
Jan 23, 2024

Conversation

floryst
Copy link
Collaborator

@floryst floryst commented Jan 22, 2024

Context

Drops tape-catch in favor of just using tape.

Probably related to failing tests in #2979.

This change means unhandled exceptions will terminate the test runner rather than resulting in a failed test. Since there are no tests that rely on unhandled exceptions to fail the test, this change doesn't affect anything.

In exchange, we get better handling of unhandled rejected promises. Tests can now be written with async/await and tape will fail a test if a test rejects with an error.

Results

  • tape-catch dropped in favor of tape

Changes

  • updated docs

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js: tip (at the time of writing)
    • OS: macOS
    • Browser: Chrome + Firefox

@floryst floryst requested review from finetjul and jourdain January 22, 2024 17:23
Copy link
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that idea of simplification.

@floryst floryst added this pull request to the merge queue Jan 23, 2024
Merged via the queue into master with commit 8234507 Jan 23, 2024
3 checks passed
@floryst floryst deleted the drop-tape-catch branch January 23, 2024 22:07
Copy link

🎉 This PR is included in version 29.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Automated label label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Automated label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants