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

feat: Flush microtasks in cleanup #519

Merged
merged 1 commit into from Mar 4, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Nov 1, 2019

BREAKING:

cleanup is now async.

- cleanup();
+ await cleanup();

What:

Flushes microtasks (introduced in #514) in cleanup instead of afterEach

Why:

Flushing microtask is not available for users of the /pure build.

How:

Move logic from index#afterEach into pure#cleanup

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • Typescript definitions updated
  • Ready to be merged

@eps1lon eps1lon added the BREAKING CHANGE This change will require a major version bump label Nov 1, 2019
@kentcdodds
Copy link
Member

We've got a few breaking changes to make in DOM Testing Library that we really need to push out. We should do all of this at the same time. Hopefully will get it done next week.

@kentcdodds kentcdodds changed the base branch from master to beta March 4, 2020 19:18
@kentcdodds kentcdodds merged commit 2d109ab into testing-library:beta Mar 4, 2020
@kentcdodds
Copy link
Member

🎉 This PR is included in version 10.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

kentcdodds pushed a commit that referenced this pull request Mar 4, 2020
kentcdodds pushed a commit that referenced this pull request Mar 12, 2020
kentcdodds pushed a commit that referenced this pull request Mar 12, 2020
kentcdodds pushed a commit that referenced this pull request Mar 12, 2020
kentcdodds pushed a commit that referenced this pull request Mar 12, 2020
kentcdodds pushed a commit that referenced this pull request Mar 12, 2020
timswalling added a commit to timswalling/DefinitelyTyped that referenced this pull request Mar 23, 2020
orta pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Mar 27, 2020
@eps1lon eps1lon deleted the feat/flushing-cleanup branch November 11, 2021 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE This change will require a major version bump released on @beta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants