Thursday, 4 June 2020

Jest: setup and teardown in test functions

Do you guys perform setup and teardown within individual tests, if that code will only be used there? I am currently doing it that way. Besides tightening the scope of the setup/teardown, there is less to put out into the file scope and reference externally that way.

Submitted June 05, 2020 at 05:52AM by fpuen

No comments:

Post a Comment