Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Increase scope of nested only flag #22

Open
KyleJune opened this issue Mar 4, 2022 · 0 comments
Open

Increase scope of nested only flag #22

KyleJune opened this issue Mar 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@KyleJune
Copy link
Member

KyleJune commented Mar 4, 2022

Currently the only flag will only apply to the top level test it is nested in. That means that tests before and after it at the top level will still run without having an only flag. That is because the top level tests get registered immediately and I cannot modify the definition after it is registered.

If there was or is a way to detect when tests will start running, I could delay actually calling Deno.test until right before it's needed, that would allow me to add only flags to the top level tests that need them.

@KyleJune KyleJune added the enhancement New feature or request label Mar 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant