Last active
October 31, 2019 16:00
-
-
Save goldbergyoni/046cc7cc8e1e314a477bc1743dfecbdf to your computer and use it in GitHub Desktop.
Initializing for component tests
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
| beforeAll(async () => { | |
| return new Promise(async (resolve, reject) => { | |
| //Instantiate DB | |
| //wait for db readiness | |
| //open API connection | |
| //Open test doubles ('mocking') sandbox | |
| sinonSandbox = sinon.sandbox.create(); | |
| //We're ready | |
| resolve() | |
| }); | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment