feat: support beforeEach and beforeAll returning cleanup functions #14454
Annotations
4 errors and 2 warnings
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `async cleanup functions are properly awaited 1`
- Snapshot - 6
+ Received + 6
@@ -12,32 +12,32 @@
run_describe_start: ROOT_DESCRIBE_BLOCK
run_describe_start: describe
test_start: test
test_started: test
hook_start: beforeEach
- > beforeEach value: <yellow>1</color>
+ > beforeEach value: 1
hook_success: beforeEach
test_fn_start: test
- > test value: <yellow>1</color>
+ > test value: 1
test_fn_success: test
hook_start: afterEach
- > afterEach value: <yellow>1</color>
+ > afterEach value: 1
hook_success: afterEach
test_done: test
run_describe_finish: describe
run_describe_start: describe with beforeAll
hook_start: beforeAll
- > beforeAll value: <yellow>3</color>
+ > beforeAll value: 3
hook_success: beforeAll
test_start: test
test_started: test
test_fn_start: test
- > test value: <yellow>3</color>
+ > test value: 3
test_fn_success: test
test_done: test
hook_start: afterAll
- > afterAll value: <yellow>3</color>
+ > afterAll value: 3
hook_success: afterAll
run_describe_finish: describe with beforeAll
run_describe_finish: ROOT_DESCRIBE_BLOCK
run_finish
↵
at Object.toMatchSnapshot (packages/jest-circus/src/__tests__/hooks.test.ts:240:18)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `async cleanup functions are properly awaited 1`
- Snapshot - 6
+ Received + 6
@@ -12,32 +12,32 @@
run_describe_start: ROOT_DESCRIBE_BLOCK
run_describe_start: describe
test_start: test
test_started: test
hook_start: beforeEach
- > beforeEach value: <yellow>1</color>
+ > beforeEach value: 1
hook_success: beforeEach
test_fn_start: test
- > test value: <yellow>1</color>
+ > test value: 1
test_fn_success: test
hook_start: afterEach
- > afterEach value: <yellow>1</color>
+ > afterEach value: 1
hook_success: afterEach
test_done: test
run_describe_finish: describe
run_describe_start: describe with beforeAll
hook_start: beforeAll
- > beforeAll value: <yellow>3</color>
+ > beforeAll value: 3
hook_success: beforeAll
test_start: test
test_started: test
test_fn_start: test
- > test value: <yellow>3</color>
+ > test value: 3
test_fn_success: test
test_done: test
hook_start: afterAll
- > afterAll value: <yellow>3</color>
+ > afterAll value: 3
hook_success: afterAll
run_describe_finish: describe with beforeAll
run_describe_finish: ROOT_DESCRIBE_BLOCK
run_finish
↵
at Object.toMatchSnapshot (packages/jest-circus/src/__tests__/hooks.test.ts:240:18)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `async cleanup functions are properly awaited 1`
- Snapshot - 6
+ Received + 6
@@ -12,32 +12,32 @@
run_describe_start: ROOT_DESCRIBE_BLOCK
run_describe_start: describe
test_start: test
test_started: test
hook_start: beforeEach
- > beforeEach value: <yellow>1</color>
+ > beforeEach value: 1
hook_success: beforeEach
test_fn_start: test
- > test value: <yellow>1</color>
+ > test value: 1
test_fn_success: test
hook_start: afterEach
- > afterEach value: <yellow>1</color>
+ > afterEach value: 1
hook_success: afterEach
test_done: test
run_describe_finish: describe
run_describe_start: describe with beforeAll
hook_start: beforeAll
- > beforeAll value: <yellow>3</color>
+ > beforeAll value: 3
hook_success: beforeAll
test_start: test
test_started: test
test_fn_start: test
- > test value: <yellow>3</color>
+ > test value: 3
test_fn_success: test
test_done: test
hook_start: afterAll
- > afterAll value: <yellow>3</color>
+ > afterAll value: 3
hook_success: afterAll
run_describe_finish: describe with beforeAll
run_describe_finish: ROOT_DESCRIBE_BLOCK
run_finish
↵
at Object.toMatchSnapshot (packages/jest-circus/src/__tests__/hooks.test.ts:240:18)
|
run tests
Final attempt failed. Child_process exited with error code 1
|
run tests
Attempt 1 failed. Reason: Child_process exited with error code 1
|
run tests
Attempt 2 failed. Reason: Child_process exited with error code 1
|
Loading