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

Add support in std/testing for before/after hooks #931

Closed
ry opened this issue May 22, 2021 · 4 comments
Closed

Add support in std/testing for before/after hooks #931

ry opened this issue May 22, 2021 · 4 comments
Labels
suggestion a suggestion yet to be agreed

Comments

@ry
Copy link
Member

ry commented May 22, 2021

See discussion here denoland/deno#10741

Exact API should be at the desecration of the implementor. Whatever works best. maybe something like:

import { beforeEach, afterEach, withHooks } from "http://deno.land/std/testing/hooks.ts";

beforeEach(async function() {
});

afterEach(async function() {
});

Deno.test("", withHooks(async function() {
});
@getspooky
Copy link
Contributor

getspooky commented May 24, 2021

Implemented please see. #936

@bartlomieju
Copy link
Member

@dsherret can you take a look? What is proposed way to handle that?

@iuioiua
Copy link
Collaborator

iuioiua commented Sep 6, 2022

@kt3k, this functionality has been implemented in testing/bdd. I believe this issue can be closed.

@kt3k
Copy link
Member

kt3k commented Sep 6, 2022

@iuioiua Right! This is implemented now. ref #2067

@kt3k kt3k closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion a suggestion yet to be agreed
Projects
None yet
Development

No branches or pull requests

5 participants