Skip to content

Conversation

marchuffnagle
Copy link
Contributor

When enabled, teardown functions will be run in the reverse order that they were declared.

Addresses #2495 - Add ability to reverse the order of teardown
steps

Addresses #2495 - Add ability to reverse the order of teardown
steps
@marchuffnagle marchuffnagle marked this pull request as ready for review May 29, 2020 14:35
@novemberborn
Copy link
Member

Looks great @yjpa7145!

Would you mind having a go at adding some documentation for this to https://github.com/avajs/ava/blob/master/docs/02-execution-context.md#tteardownfn?

@marchuffnagle
Copy link
Contributor Author

marchuffnagle commented May 31, 2020

Would you mind having a go at adding some documentation for this

Done: https://github.com/avajs/ava/pull/2505/files#diff-fdc3f6412c8049ee065ab49994dc0879

@novemberborn
Copy link
Member

Something came up and I haven’t yet had a chance to look at this again.

@novemberborn novemberborn changed the title Add "reverseTeardowns" experimental feature Experimentally reverse teardown order Jun 14, 2020
@novemberborn novemberborn merged commit 952a017 into avajs:master Jun 14, 2020
@novemberborn
Copy link
Member

Thanks @yjpa7145! I've opened #2516 to make this official in v4.

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