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

afterEach method is missing from jasmine namespace getEnv Method #1914

Closed
Arghh opened this issue May 12, 2021 · 2 comments
Closed

afterEach method is missing from jasmine namespace getEnv Method #1914

Arghh opened this issue May 12, 2021 · 2 comments

Comments

@Arghh
Copy link

Arghh commented May 12, 2021

Hi,

after updating to "@types/jasmine": "~3.7.0" the afterEach method seems to be missing in the jasmine.Env namespace.

How can I call this method after the update? Was there a change?

jasmine.getEnv().afterEach(() => {});

Thank you for your help!

@Arghh Arghh closed this as completed May 14, 2021
@Arghh Arghh reopened this May 14, 2021
@Arghh
Copy link
Author

Arghh commented May 14, 2021

So in 3.7.0 afterEach along with other methods got moved out of Env namespace and into Globals.

the call in test.ts should be now:

afterEach(() => {});

that's it.

the issue can be closed.

@Arghh Arghh closed this as completed May 14, 2021
@slackersoft
Copy link
Member

afterEach has always been available on the global namespace, along with it, describe, etc. What happened recently is the typings for Jasmine got updated to more obviously indicate where you should be calling those functions from.

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

No branches or pull requests

2 participants