Created
March 15, 2021 17:08
-
-
Save cmidgley/35de597abd7ca64d9755d31ab71bafdb to your computer and use it in GitHub Desktop.
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
describe("test", () => { | |
beforeAll(async () => { | |
console.log("beforeAll starting"); | |
await new Promise((resolve) => { | |
setTimeout(() => resolve(), 1000); | |
}); | |
console.log("beforeAll complete"); | |
}); | |
afterAll(async () => { | |
console.log("afterAll starting"); | |
await new Promise((resolve) => { | |
setTimeout(() => resolve(), 1000); | |
}); | |
console.log("afterAll complete"); | |
}); | |
it("should be ok", () => { | |
expect(3).toBe(3); | |
// expect(3).toBe(5); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment