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

How to run code after all tests complete in jasmine 2 #404

Open
playground opened this issue Aug 19, 2016 · 2 comments
Open

How to run code after all tests complete in jasmine 2 #404

playground opened this issue Aug 19, 2016 · 2 comments

Comments

@playground
Copy link

In jasmine 1, we were able to tap into finishCallback such as this
const _finishCallback = jasmine.Runner.prototype.finishCallback;
jasmine.Runner.prototype.finishCallback = function () {
// Run the old finishCallback
_finishCallback.bind(this)();

// console.log('close server connection');
app.closeServer();
};

Is there an equivalent to accomplish the same?

@junajan
Copy link

junajan commented Feb 28, 2017

+1

@jaketeater
Copy link

I was able to run code after all of the tests are complete by putting an afterAll() outside of the describe()'s

It executes once, after all tests have been run.

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

3 participants