Skip to content

Bound execution context and changed skip #1696

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

Merged
merged 3 commits into from
Feb 12, 2018

Conversation

novemberborn
Copy link
Member

  • Assertions are now bound. Fixes Pre-bind assertion methods #1592.
  • Assertions are now skipped by calling .skip() at the end, e.g. t.fail.skip(). This is consistent with the test interface, where skip() can only be used at the end of the chain.
  • The private t._test value has been removed. Instead a WeakMap is used internally to look up the corresponding Test instance given an ExecutionContext.
  • Fix t.snapshot.skip(). Ensure subsequent t.snapshot() calls compare the correct snapshot. Forbid snapshots from being skipped while updating them. Fixes Skipping a snapshot assertion should not cause the next snapshot assertion to fail #1425.

Assertions are now bound. Fixes #1592.

Assertions are now skipped by calling `.skip()` at the end, e.g.
`t.fail.skip()`. This is consistent with the test interface, where
`skip()` can only be used at the end of the chain.

The private `t._test` value has been removed. Instead a WeakMap is used
internally to look up the corresponding Test instance given an
ExecutionContext.
Ensure subsequent t.snapshot() calls compare the correct snapshot.
Forbid snapshots from being skipped while updating them. Fixes #1425.
@novemberborn
Copy link
Member Author

Fix t.snapshot.skip(). Ensure subsequent t.snapshot() calls compare the correct snapshot. Forbid snapshots from being skipped while updating them. Fixes #1425.

See #1425 (comment) though.

@sindresorhus
Copy link
Member

sindresorhus commented Feb 11, 2018

See #1425 (comment) though.

I agree. Way too much of an edge-case to care about.

@novemberborn novemberborn merged commit 73e98f9 into master Feb 12, 2018
@novemberborn novemberborn deleted the bound-execution-context-and-changed-skip branch February 12, 2018 11:50
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.

2 participants