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

Detect t.try() usage in hooks; experimentally disable t.snapshot() #2527

Merged
merged 12 commits into from
Jul 4, 2020

Conversation

oantoro
Copy link
Contributor

@oantoro oantoro commented Jun 24, 2020

This change will disable snapshots and try assertions in hooks. But I am not sure with the unit test. Let me know if additional work is required.

Fixes #2523

lib/assert.js Outdated Show resolved Hide resolved
lib/test.js Show resolved Hide resolved
test-tap/hooks.js Outdated Show resolved Hide resolved
@oantoro oantoro force-pushed the disable-snapshot-and-try-in-hooks branch from 65b9ad1 to 63568bf Compare June 30, 2020 08:33
lib/assert.js Outdated Show resolved Hide resolved
@tymfear
Copy link
Contributor

tymfear commented Jun 30, 2020

@novemberborn when something is released under the feature flag, when it is a good time to update docs?
Changes in this PR should be reflected in 04-snapshot-testing.md and 03-assertions.md.

Copy link
Member

@novemberborn novemberborn left a comment

Choose a reason for hiding this comment

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

@okyantoro thanks, I've made a few more tweaks. Let me know what you think.

@tymfear neither of those files mention using snapshots or try() in hooks, so I don't think we need to explicitly point this out. You'll realize when you try to use it.

lib/assert.js Outdated Show resolved Hide resolved
@oantoro
Copy link
Contributor Author

oantoro commented Jul 4, 2020

Thank you @novemberborn

@novemberborn novemberborn changed the title Disable snapshots and try assertions in hooks Detect t.try() usage in hooks; experimentally disable t.snapshot() Jul 4, 2020
@novemberborn novemberborn merged commit d01db61 into avajs:master Jul 4, 2020
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.

Disable snapshots and try assertions in hooks
3 participants