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

Allow hooks to be added globally after tests are registered #26

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

Allow hooks to be added globally after tests are registered #26

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

Comments

@KyleJune
Copy link
Member

KyleJune commented Mar 6, 2022

Currently this module requires hooks to be registered first before calling describe/it globally.

At the global level this was needed because I need to determine if Deno.test should be called once at the top level with all the hooks and top level test cases being called as steps or if the top level tests should be registered with Deno.test instead. If there is a way to delay calling Deno.test until all test cases are registered using describe/it, I could make the determination right before the tests start running. That would make it possible to call the global level hook functions and describe/it blocks in any order.

@KyleJune KyleJune added enhancement New feature or request question Further information is requested labels Mar 6, 2022
@KyleJune KyleJune changed the title Allow hooks to be added globally or within describe blocks after subtests are registered Allow hooks to be added globally after tests are registered Mar 21, 2022
@KyleJune KyleJune removed the question Further information is requested label Mar 21, 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