Skip to content

Commit

Permalink
test: enhance test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Aug 19, 2023
1 parent 11e5aeb commit 81597e6
Show file tree
Hide file tree
Showing 35 changed files with 2,911 additions and 175 deletions.
126 changes: 123 additions & 3 deletions packages/fixtures/27.x.x/env-worker-1/duplicate-name.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
"hookId": "hook_2",
"hookType": "beforeAll"
},
{
"type": "add_hook",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_3",
"hookType": "afterAll"
},
{
"type": "add_test",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -69,9 +75,15 @@
{
"type": "add_hook",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_3",
"hookId": "hook_4",
"hookType": "beforeAll"
},
{
"type": "add_hook",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_5",
"hookType": "afterAll"
},
{
"type": "add_test",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -116,6 +128,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_1"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "hook_1.0",
"path": "note",
"value": "Suite",
"operation": "set"
},
{
"type": "hook_success",
"testFilePath": "__tests__/duplicate-name.js",
Expand All @@ -131,6 +151,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_2"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "hook_2.0",
"path": "note",
"value": "Nested suite 1 > beforeAll",
"operation": "set"
},
{
"type": "hook_success",
"testFilePath": "__tests__/duplicate-name.js",
Expand All @@ -156,6 +184,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_0"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "test_0.0.fn",
"path": "note",
"value": "Nested suite 1 > Test 1",
"operation": "set"
},
{
"type": "test_fn_success",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -186,6 +222,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_1"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "test_1.0.fn",
"path": "note",
"value": "Nested suite 1 > Test 2",
"operation": "set"
},
{
"type": "test_fn_failure",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -221,6 +265,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_1"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "test_1.2.fn",
"path": "note",
"value": "Nested suite 1 > Test 2",
"operation": "set"
},
{
"type": "test_fn_success",
"testFilePath": "__tests__/duplicate-name.js",
Expand All @@ -231,6 +283,24 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_1"
},
{
"type": "hook_start",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_3"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "hook_3.0",
"path": "note",
"value": "Nested suite 1 > afterAll",
"operation": "set"
},
{
"type": "hook_success",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_3"
},
{
"type": "run_describe_finish",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -264,12 +334,20 @@
{
"type": "hook_start",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_3"
"hookId": "hook_4"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "hook_4.0",
"path": "note",
"value": "Nested suite 2 > beforeAll",
"operation": "set"
},
{
"type": "hook_success",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_3"
"hookId": "hook_4"
},
{
"type": "test_start",
Expand All @@ -291,6 +369,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_4"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "test_4.0.fn",
"path": "note",
"value": "Nested suite 2 > Test 1",
"operation": "set"
},
{
"type": "test_fn_failure",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -321,6 +407,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_5"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "test_5.0.fn",
"path": "note",
"value": "Nested suite 2 > Test 2",
"operation": "set"
},
{
"type": "test_fn_success",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down Expand Up @@ -356,6 +450,14 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_4"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "test_4.2.fn",
"path": "note",
"value": "Nested suite 2 > Test 1",
"operation": "set"
},
{
"type": "test_fn_success",
"testFilePath": "__tests__/duplicate-name.js",
Expand All @@ -366,6 +468,24 @@
"testFilePath": "__tests__/duplicate-name.js",
"testId": "test_4"
},
{
"type": "hook_start",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_5"
},
{
"type": "set_metadata",
"testFilePath": "__tests__/duplicate-name.js",
"targetId": "hook_5.0",
"path": "note",
"value": "Nested suite 2 > afterAll",
"operation": "set"
},
{
"type": "hook_success",
"testFilePath": "__tests__/duplicate-name.js",
"hookId": "hook_5"
},
{
"type": "run_describe_finish",
"testFilePath": "__tests__/duplicate-name.js",
Expand Down
23 changes: 19 additions & 4 deletions packages/fixtures/27.x.x/env-worker-1/hook-beforeAll-fail.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"hookId": "hook_1",
"hookType": "beforeAll"
},
{
"type": "add_test",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
},
{
"type": "start_describe_definition",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
Expand All @@ -28,7 +33,7 @@
{
"type": "add_test",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
"testId": "test_1"
},
{
"type": "finish_describe_definition",
Expand Down Expand Up @@ -59,6 +64,16 @@
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"hookId": "hook_1"
},
{
"type": "test_start",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
},
{
"type": "test_skip",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
},
{
"type": "run_describe_start",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
Expand All @@ -67,17 +82,17 @@
{
"type": "test_start",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
"testId": "test_1"
},
{
"type": "test_fn_start",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
"testId": "test_1"
},
{
"type": "test_done",
"testFilePath": "__tests__/hook-beforeAll-fail.js",
"testId": "test_0"
"testId": "test_1"
},
{
"type": "run_describe_finish",
Expand Down
64 changes: 64 additions & 0 deletions packages/fixtures/27.x.x/env-worker-1/test-skip.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,55 @@
"hookId": "hook_0",
"hookType": "beforeEach"
},
{
"type": "start_describe_definition",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_1"
},
{
"type": "add_hook",
"testFilePath": "__tests__/test-skip.js",
"hookId": "hook_1",
"hookType": "beforeAll"
},
{
"type": "start_describe_definition",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_2"
},
{
"type": "add_hook",
"testFilePath": "__tests__/test-skip.js",
"hookId": "hook_2",
"hookType": "beforeAll"
},
{
"type": "add_test",
"testFilePath": "__tests__/test-skip.js",
"testId": "test_0"
},
{
"type": "add_hook",
"testFilePath": "__tests__/test-skip.js",
"hookId": "hook_3",
"hookType": "afterAll"
},
{
"type": "finish_describe_definition",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_2"
},
{
"type": "add_hook",
"testFilePath": "__tests__/test-skip.js",
"hookId": "hook_4",
"hookType": "afterAll"
},
{
"type": "finish_describe_definition",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_1"
},
{
"type": "finish_describe_definition",
"testFilePath": "__tests__/test-skip.js",
Expand All @@ -33,6 +77,16 @@
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_0"
},
{
"type": "run_describe_start",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_1"
},
{
"type": "run_describe_start",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_2"
},
{
"type": "test_start",
"testFilePath": "__tests__/test-skip.js",
Expand All @@ -43,6 +97,16 @@
"testFilePath": "__tests__/test-skip.js",
"testId": "test_0"
},
{
"type": "run_describe_finish",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_2"
},
{
"type": "run_describe_finish",
"testFilePath": "__tests__/test-skip.js",
"describeId": "describe_1"
},
{
"type": "run_describe_finish",
"testFilePath": "__tests__/test-skip.js",
Expand Down
Loading

0 comments on commit 81597e6

Please sign in to comment.