PASS ./test2.test.js
● Console
console.log test2.test.js:2
beforeAll Root sum2
console.log test2.test.js:10
beforeEach Root test2
console.log test2.test.js:18
test root test2
console.log test2.test.js:14
afterEach Root test2
console.log test2.test.js:23
beforeAll First Layer test2
console.log test2.test.js:10
beforeEach Root test2
console.log test2.test.js:31
beforeEach First Layer test2
console.log test2.test.js:39
test First Layer test2
console.log test2.test.js:35
afterEach First Layer test2
console.log test2.test.js:14
afterEach Root test2
console.log test2.test.js:27
afterAll First Layer test2
console.log test2.test.js:6
afterAll Root sum2
PASS ./test1.test.js
● Console
console.log test1.test.js:2
beforeAll Root test1
console.log test1.test.js:10
beforeEach Root test1
console.log test1.test.js:18
test root test1
console.log test1.test.js:14
afterEach Root test1
console.log test1.test.js:23
beforeAll First Layer test1
console.log test1.test.js:10
beforeEach Root test1
console.log test1.test.js:31
beforeEach First Layer test1
console.log test1.test.js:39
test First Layer test1
console.log test1.test.js:35
afterEach First Layer test1
console.log test1.test.js:14
afterEach Root test1
console.log test1.test.js:27
afterAll First Layer test1
console.log test1.test.js:6
afterAll Root test1
Test Suites: 2 passed, 2 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: 2.992s
Ran all test suites.
Last active
July 26, 2018 00:37
-
-
Save nachoesmite/db079c9016a2497c67146d4b6f3d3962 to your computer and use it in GitHub Desktop.
jest-order
This file contains 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(() => { | |
console.log('beforeAll Root test1'); | |
}) | |
afterAll(() => { | |
console.log('afterAll Root test1'); | |
}) | |
beforeEach(() => { | |
console.log('beforeEach Root test1'); | |
}) | |
afterEach(() => { | |
console.log('afterEach Root test1'); | |
}) | |
test('Root Layer Test test1', () => { | |
console.log('test root test1'); | |
}); | |
describe('First Layer', () => { | |
beforeAll(() => { | |
console.log('beforeAll First Layer test1'); | |
}) | |
afterAll(() => { | |
console.log('afterAll First Layer test1'); | |
}) | |
beforeEach(() => { | |
console.log('beforeEach First Layer test1'); | |
}) | |
afterEach(() => { | |
console.log('afterEach First Layer test1'); | |
}) | |
test('First Layer Test test1', () => { | |
console.log('test First Layer test1'); | |
}); | |
}); |
This file contains 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(() => { | |
console.log('beforeAll Root sum2'); | |
}) | |
afterAll(() => { | |
console.log('afterAll Root sum2'); | |
}) | |
beforeEach(() => { | |
console.log('beforeEach Root test2'); | |
}) | |
afterEach(() => { | |
console.log('afterEach Root test2'); | |
}) | |
test('Root Layer Test test2', () => { | |
console.log('test root test2'); | |
}); | |
describe('First Layer', () => { | |
beforeAll(() => { | |
console.log('beforeAll First Layer test2'); | |
}) | |
afterAll(() => { | |
console.log('afterAll First Layer test2'); | |
}) | |
beforeEach(() => { | |
console.log('beforeEach First Layer test2'); | |
}) | |
afterEach(() => { | |
console.log('afterEach First Layer test2'); | |
}) | |
test('First Layer Test test2', () => { | |
console.log('test First Layer test2'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment