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

Pre/post hook for each test #28

Open
Nymphium opened this issue Mar 9, 2021 · 1 comment
Open

Pre/post hook for each test #28

Nymphium opened this issue Mar 9, 2021 · 1 comment
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.

Comments

@Nymphium
Copy link

Nymphium commented Mar 9, 2021

I'ts preferred to have this capability, for example, to manage resources such as DB connection, without boilerplating.

@github-iron github-iron added the forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system. label Mar 10, 2021
@v-gb
Copy link

v-gb commented Jun 29, 2021

Seems reasonable. Although maybe instead of pre/post hook, one would be better off with a hook that wraps the test (val wrap : (unit -> 'a) -> 'a or something).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.
Projects
None yet
Development

No branches or pull requests

3 participants