mirror of
https://github.com/kou029w/jest-hands-on.git
synced 2025-02-01 06:08:38 +00:00
14 lines
600 B
JavaScript
14 lines
600 B
JavaScript
/** @license https://github.com/facebook/jest/blob/master/LICENSE */
|
|
|
|
beforeAll(() => console.log("1 - beforeAll"));
|
|
afterAll(() => console.log("1 - afterAll"));
|
|
beforeEach(() => console.log("1 - beforeEach"));
|
|
afterEach(() => console.log("1 - afterEach"));
|
|
test("1 - test", () => console.log("1 - test"));
|
|
describe("Scoped / Nested block", () => {
|
|
beforeAll(() => console.log("2 - beforeAll"));
|
|
afterAll(() => console.log("2 - afterAll"));
|
|
beforeEach(() => console.log("2 - beforeEach"));
|
|
afterEach(() => console.log("2 - afterEach"));
|
|
test("2 - test", () => console.log("2 - test"));
|
|
});
|