-
-
Save Shobhit1/960a97d328b9c74844d3efce39a18bdb to your computer and use it in GitHub Desktop.
This bit of code essentially bridges the Mocha/Jest api so that Jest can be used in place of Mocha.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// There are other differences between Jest and Mocha, | |
// but these were the functions being used at Airbnb. | |
global.context = describe; | |
global.before = beforeAll; | |
global.after = afterEach; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment