From cc48708ed52f0b16e84ef5a0f4f7bd36bb9c178d Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Fri, 1 Sep 2023 14:13:55 +0300 Subject: [PATCH] test: early-broken.js --- package.json | 5 +- .../27.x.x/env-worker-1/duplicate-cases.json | 18 ++ .../env-worker-1/duplicate-generation.json | 15 + .../27.x.x/env-worker-1/duplicate-name.json | 24 ++ .../27.x.x/env-worker-1/early-broken.json | 23 ++ .../env-worker-1/hook-afterAll-fail.json | 9 + .../env-worker-1/hook-beforeAll-fail.json | 9 + .../27.x.x/env-worker-1/hook-nesting.json | 12 + .../27.x.x/env-worker-1/test-concurrent.json | 21 ++ .../27.x.x/env-worker-1/test-fail.json | 9 + .../27.x.x/env-worker-1/test-pass.json | 9 + .../27.x.x/env-worker-1/test-retry.json | 12 + .../27.x.x/env-worker-1/test-skip.json | 6 + .../27.x.x/env-worker-1/test-todo.json | 6 + .../27.x.x/env-worker-N/duplicate-cases.json | 18 ++ .../env-worker-N/duplicate-generation.json | 15 + .../27.x.x/env-worker-N/duplicate-name.json | 24 ++ .../27.x.x/env-worker-N/early-broken.json | 23 ++ .../env-worker-N/hook-afterAll-fail.json | 9 + .../env-worker-N/hook-beforeAll-fail.json | 9 + .../27.x.x/env-worker-N/hook-nesting.json | 12 + .../27.x.x/env-worker-N/test-concurrent.json | 21 ++ .../27.x.x/env-worker-N/test-fail.json | 9 + .../27.x.x/env-worker-N/test-pass.json | 9 + .../27.x.x/env-worker-N/test-retry.json | 12 + .../27.x.x/env-worker-N/test-skip.json | 6 + .../27.x.x/env-worker-N/test-todo.json | 6 + .../no-env-worker-1/duplicate-cases.json | 18 ++ .../no-env-worker-1/duplicate-generation.json | 15 + .../no-env-worker-1/duplicate-name.json | 24 ++ .../27.x.x/no-env-worker-1/early-broken.json | 12 + .../no-env-worker-1/hook-afterAll-fail.json | 9 + .../no-env-worker-1/hook-beforeAll-fail.json | 9 + .../27.x.x/no-env-worker-1/hook-nesting.json | 12 + .../no-env-worker-1/test-concurrent.json | 21 ++ .../27.x.x/no-env-worker-1/test-fail.json | 9 + .../27.x.x/no-env-worker-1/test-pass.json | 9 + .../27.x.x/no-env-worker-1/test-retry.json | 12 + .../27.x.x/no-env-worker-1/test-skip.json | 6 + .../27.x.x/no-env-worker-1/test-todo.json | 6 + .../no-env-worker-N/duplicate-cases.json | 18 ++ .../no-env-worker-N/duplicate-generation.json | 15 + .../no-env-worker-N/duplicate-name.json | 24 ++ .../27.x.x/no-env-worker-N/early-broken.json | 12 + .../no-env-worker-N/hook-afterAll-fail.json | 9 + .../no-env-worker-N/hook-beforeAll-fail.json | 9 + .../27.x.x/no-env-worker-N/hook-nesting.json | 12 + .../no-env-worker-N/test-concurrent.json | 21 ++ .../27.x.x/no-env-worker-N/test-fail.json | 9 + .../27.x.x/no-env-worker-N/test-pass.json | 9 + .../27.x.x/no-env-worker-N/test-retry.json | 12 + .../27.x.x/no-env-worker-N/test-skip.json | 6 + .../27.x.x/no-env-worker-N/test-todo.json | 6 + .../28.x.x/env-worker-1/duplicate-cases.json | 18 ++ .../env-worker-1/duplicate-generation.json | 15 + .../28.x.x/env-worker-1/duplicate-name.json | 24 ++ .../28.x.x/env-worker-1/early-broken.json | 23 ++ .../env-worker-1/hook-afterAll-fail.json | 9 + .../env-worker-1/hook-beforeAll-fail.json | 9 + .../28.x.x/env-worker-1/hook-nesting.json | 12 + .../28.x.x/env-worker-1/test-concurrent.json | 21 ++ .../28.x.x/env-worker-1/test-fail.json | 9 + .../28.x.x/env-worker-1/test-pass.json | 9 + .../28.x.x/env-worker-1/test-retry.json | 12 + .../28.x.x/env-worker-1/test-skip.json | 6 + .../28.x.x/env-worker-1/test-todo.json | 6 + .../28.x.x/env-worker-N/duplicate-cases.json | 18 ++ .../env-worker-N/duplicate-generation.json | 15 + .../28.x.x/env-worker-N/duplicate-name.json | 24 ++ .../28.x.x/env-worker-N/early-broken.json | 23 ++ .../env-worker-N/hook-afterAll-fail.json | 9 + .../env-worker-N/hook-beforeAll-fail.json | 9 + .../28.x.x/env-worker-N/hook-nesting.json | 12 + .../28.x.x/env-worker-N/test-concurrent.json | 21 ++ .../28.x.x/env-worker-N/test-fail.json | 9 + .../28.x.x/env-worker-N/test-pass.json | 9 + .../28.x.x/env-worker-N/test-retry.json | 12 + .../28.x.x/env-worker-N/test-skip.json | 6 + .../28.x.x/env-worker-N/test-todo.json | 6 + .../no-env-worker-1/duplicate-cases.json | 18 ++ .../no-env-worker-1/duplicate-generation.json | 15 + .../no-env-worker-1/duplicate-name.json | 24 ++ .../28.x.x/no-env-worker-1/early-broken.json | 12 + .../no-env-worker-1/hook-afterAll-fail.json | 9 + .../no-env-worker-1/hook-beforeAll-fail.json | 9 + .../28.x.x/no-env-worker-1/hook-nesting.json | 12 + .../no-env-worker-1/test-concurrent.json | 21 ++ .../28.x.x/no-env-worker-1/test-fail.json | 9 + .../28.x.x/no-env-worker-1/test-pass.json | 9 + .../28.x.x/no-env-worker-1/test-retry.json | 12 + .../28.x.x/no-env-worker-1/test-skip.json | 6 + .../28.x.x/no-env-worker-1/test-todo.json | 6 + .../no-env-worker-N/duplicate-cases.json | 18 ++ .../no-env-worker-N/duplicate-generation.json | 15 + .../no-env-worker-N/duplicate-name.json | 24 ++ .../28.x.x/no-env-worker-N/early-broken.json | 12 + .../no-env-worker-N/hook-afterAll-fail.json | 9 + .../no-env-worker-N/hook-beforeAll-fail.json | 9 + .../28.x.x/no-env-worker-N/hook-nesting.json | 12 + .../no-env-worker-N/test-concurrent.json | 21 ++ .../28.x.x/no-env-worker-N/test-fail.json | 9 + .../28.x.x/no-env-worker-N/test-pass.json | 9 + .../28.x.x/no-env-worker-N/test-retry.json | 12 + .../28.x.x/no-env-worker-N/test-skip.json | 6 + .../28.x.x/no-env-worker-N/test-todo.json | 6 + .../29.x.x/env-worker-1/duplicate-cases.json | 30 ++ .../env-worker-1/duplicate-generation.json | 24 ++ .../29.x.x/env-worker-1/duplicate-name.json | 45 +++ .../29.x.x/env-worker-1/early-broken.json | 23 ++ .../env-worker-1/hook-afterAll-fail.json | 12 + .../env-worker-1/hook-beforeAll-fail.json | 12 + .../29.x.x/env-worker-1/hook-nesting.json | 18 ++ .../29.x.x/env-worker-1/test-concurrent.json | 36 +++ .../29.x.x/env-worker-1/test-fail.json | 12 + .../29.x.x/env-worker-1/test-pass.json | 12 + .../29.x.x/env-worker-1/test-retry.json | 18 ++ .../29.x.x/env-worker-1/test-skip.json | 6 + .../29.x.x/env-worker-1/test-todo.json | 9 + .../29.x.x/env-worker-N/duplicate-cases.json | 30 ++ .../env-worker-N/duplicate-generation.json | 24 ++ .../29.x.x/env-worker-N/duplicate-name.json | 45 +++ .../29.x.x/env-worker-N/early-broken.json | 23 ++ .../env-worker-N/hook-afterAll-fail.json | 12 + .../env-worker-N/hook-beforeAll-fail.json | 12 + .../29.x.x/env-worker-N/hook-nesting.json | 18 ++ .../29.x.x/env-worker-N/test-concurrent.json | 36 +++ .../29.x.x/env-worker-N/test-fail.json | 12 + .../29.x.x/env-worker-N/test-pass.json | 12 + .../29.x.x/env-worker-N/test-retry.json | 18 ++ .../29.x.x/env-worker-N/test-skip.json | 6 + .../29.x.x/env-worker-N/test-todo.json | 9 + .../no-env-worker-1/aggregatedResult.json | 286 +++++++++++++++++- .../no-env-worker-1/duplicate-cases.json | 30 ++ .../no-env-worker-1/duplicate-generation.json | 24 ++ .../no-env-worker-1/duplicate-name.json | 45 +++ .../29.x.x/no-env-worker-1/early-broken.json | 12 + .../no-env-worker-1/hook-afterAll-fail.json | 12 + .../no-env-worker-1/hook-beforeAll-fail.json | 12 + .../29.x.x/no-env-worker-1/hook-nesting.json | 18 ++ .../no-env-worker-1/test-concurrent.json | 36 +++ .../29.x.x/no-env-worker-1/test-fail.json | 12 + .../29.x.x/no-env-worker-1/test-pass.json | 12 + .../29.x.x/no-env-worker-1/test-retry.json | 18 ++ .../29.x.x/no-env-worker-1/test-skip.json | 6 + .../29.x.x/no-env-worker-1/test-todo.json | 9 + .../no-env-worker-N/duplicate-cases.json | 30 ++ .../no-env-worker-N/duplicate-generation.json | 24 ++ .../no-env-worker-N/duplicate-name.json | 45 +++ .../29.x.x/no-env-worker-N/early-broken.json | 12 + .../no-env-worker-N/hook-afterAll-fail.json | 12 + .../no-env-worker-N/hook-beforeAll-fail.json | 12 + .../29.x.x/no-env-worker-N/hook-nesting.json | 18 ++ .../no-env-worker-N/test-concurrent.json | 36 +++ .../29.x.x/no-env-worker-N/test-fail.json | 12 + .../29.x.x/no-env-worker-N/test-pass.json | 12 + .../29.x.x/no-env-worker-N/test-retry.json | 18 ++ .../29.x.x/no-env-worker-N/test-skip.json | 6 + .../29.x.x/no-env-worker-N/test-todo.json | 9 + .../src/metadata/MetadataEventHandler.ts | 2 +- .../__snapshots__/integration.test.ts.snap | 188 +++++++++++- .../__snapshots__/run-traversal.test.ts.snap | 16 + packages/recorder/__tests__/early-broken.js | 1 + packages/recorder/mockReporter.js | 26 ++ 163 files changed, 2865 insertions(+), 5 deletions(-) create mode 100644 packages/fixtures/27.x.x/env-worker-1/early-broken.json create mode 100644 packages/fixtures/27.x.x/env-worker-N/early-broken.json create mode 100644 packages/fixtures/27.x.x/no-env-worker-1/early-broken.json create mode 100644 packages/fixtures/27.x.x/no-env-worker-N/early-broken.json create mode 100644 packages/fixtures/28.x.x/env-worker-1/early-broken.json create mode 100644 packages/fixtures/28.x.x/env-worker-N/early-broken.json create mode 100644 packages/fixtures/28.x.x/no-env-worker-1/early-broken.json create mode 100644 packages/fixtures/28.x.x/no-env-worker-N/early-broken.json create mode 100644 packages/fixtures/29.x.x/env-worker-1/early-broken.json create mode 100644 packages/fixtures/29.x.x/env-worker-N/early-broken.json create mode 100644 packages/fixtures/29.x.x/no-env-worker-1/early-broken.json create mode 100644 packages/fixtures/29.x.x/no-env-worker-N/early-broken.json create mode 100644 packages/recorder/__tests__/early-broken.js diff --git a/package.json b/package.json index 1b0987c..6e8a650 100644 --- a/package.json +++ b/package.json @@ -27,5 +27,8 @@ "workspaces": [ "packages/*", "packages/examples/*" - ] + ], + "jest": { + "testPathIgnorePatterns": [".*"] + } } diff --git a/packages/fixtures/27.x.x/env-worker-1/duplicate-cases.json b/packages/fixtures/27.x.x/env-worker-1/duplicate-cases.json index 432f71b..d6e3b7a 100644 --- a/packages/fixtures/27.x.x/env-worker-1/duplicate-cases.json +++ b/packages/fixtures/27.x.x/env-worker-1/duplicate-cases.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" @@ -103,6 +106,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -133,6 +139,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -173,6 +182,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -203,6 +215,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -216,5 +231,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-cases.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/duplicate-generation.json b/packages/fixtures/27.x.x/env-worker-1/duplicate-generation.json index b3a7359..4eb18dd 100644 --- a/packages/fixtures/27.x.x/env-worker-1/duplicate-generation.json +++ b/packages/fixtures/27.x.x/env-worker-1/duplicate-generation.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" @@ -68,6 +71,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -98,6 +104,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -133,6 +142,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-generation.js", @@ -141,5 +153,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-generation.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/duplicate-name.json b/packages/fixtures/27.x.x/env-worker-1/duplicate-name.json index 5381ef7..1f31470 100644 --- a/packages/fixtures/27.x.x/env-worker-1/duplicate-name.json +++ b/packages/fixtures/27.x.x/env-worker-1/duplicate-name.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" @@ -202,6 +205,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -240,6 +246,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -283,6 +292,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -387,6 +399,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -425,6 +440,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -468,6 +486,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -504,5 +525,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-name.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/early-broken.json b/packages/fixtures/27.x.x/env-worker-1/early-broken.json new file mode 100644 index 0000000..d6ddd6f --- /dev/null +++ b/packages/fixtures/27.x.x/env-worker-1/early-broken.json @@ -0,0 +1,23 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "start_describe_definition", + "testFilePath": "__tests__/early-broken.js", + "describeId": "describe_0" + }, + { + "type": "add_hook", + "testFilePath": "__tests__/early-broken.js", + "hookId": "hook_0", + "hookType": "beforeEach" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/27.x.x/env-worker-1/hook-afterAll-fail.json b/packages/fixtures/27.x.x/env-worker-1/hook-afterAll-fail.json index 0e87797..58a4a31 100644 --- a/packages/fixtures/27.x.x/env-worker-1/hook-afterAll-fail.json +++ b/packages/fixtures/27.x.x/env-worker-1/hook-afterAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" @@ -90,6 +93,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -123,5 +129,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-afterAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/hook-beforeAll-fail.json b/packages/fixtures/27.x.x/env-worker-1/hook-beforeAll-fail.json index 0b66cc3..cc41404 100644 --- a/packages/fixtures/27.x.x/env-worker-1/hook-beforeAll-fail.json +++ b/packages/fixtures/27.x.x/env-worker-1/hook-beforeAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" @@ -94,6 +97,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -107,5 +113,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/hook-nesting.json b/packages/fixtures/27.x.x/env-worker-1/hook-nesting.json index 5a3230e..c8396ed 100644 --- a/packages/fixtures/27.x.x/env-worker-1/hook-nesting.json +++ b/packages/fixtures/27.x.x/env-worker-1/hook-nesting.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" @@ -292,6 +295,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/hook-nesting.js", @@ -394,6 +400,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -430,5 +439,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-nesting.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/test-concurrent.json b/packages/fixtures/27.x.x/env-worker-1/test-concurrent.json index d0eedb3..8521b56 100644 --- a/packages/fixtures/27.x.x/env-worker-1/test-concurrent.json +++ b/packages/fixtures/27.x.x/env-worker-1/test-concurrent.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" @@ -91,6 +94,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -129,6 +135,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -167,6 +176,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -205,6 +217,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -243,6 +258,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-concurrent.js", @@ -251,5 +269,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-concurrent.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/test-fail.json b/packages/fixtures/27.x.x/env-worker-1/test-fail.json index 966e342..8d26d70 100644 --- a/packages/fixtures/27.x.x/env-worker-1/test-fail.json +++ b/packages/fixtures/27.x.x/env-worker-1/test-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-fail.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/test-pass.json b/packages/fixtures/27.x.x/env-worker-1/test-pass.json index 90cac40..fe45b78 100644 --- a/packages/fixtures/27.x.x/env-worker-1/test-pass.json +++ b/packages/fixtures/27.x.x/env-worker-1/test-pass.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-pass.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-pass.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/test-retry.json b/packages/fixtures/27.x.x/env-worker-1/test-retry.json index 16a1444..c130325 100644 --- a/packages/fixtures/27.x.x/env-worker-1/test-retry.json +++ b/packages/fixtures/27.x.x/env-worker-1/test-retry.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" @@ -85,6 +88,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -120,6 +126,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -138,5 +147,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-retry.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/test-skip.json b/packages/fixtures/27.x.x/env-worker-1/test-skip.json index 277bd65..831784f 100644 --- a/packages/fixtures/27.x.x/env-worker-1/test-skip.json +++ b/packages/fixtures/27.x.x/env-worker-1/test-skip.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" @@ -115,5 +118,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-1/test-todo.json b/packages/fixtures/27.x.x/env-worker-1/test-todo.json index 09de6b0..93309bb 100644 --- a/packages/fixtures/27.x.x/env-worker-1/test-todo.json +++ b/packages/fixtures/27.x.x/env-worker-1/test-todo.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" @@ -187,5 +190,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/duplicate-cases.json b/packages/fixtures/27.x.x/env-worker-N/duplicate-cases.json index 432f71b..d6e3b7a 100644 --- a/packages/fixtures/27.x.x/env-worker-N/duplicate-cases.json +++ b/packages/fixtures/27.x.x/env-worker-N/duplicate-cases.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" @@ -103,6 +106,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -133,6 +139,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -173,6 +182,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -203,6 +215,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -216,5 +231,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-cases.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/duplicate-generation.json b/packages/fixtures/27.x.x/env-worker-N/duplicate-generation.json index b3a7359..4eb18dd 100644 --- a/packages/fixtures/27.x.x/env-worker-N/duplicate-generation.json +++ b/packages/fixtures/27.x.x/env-worker-N/duplicate-generation.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" @@ -68,6 +71,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -98,6 +104,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -133,6 +142,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-generation.js", @@ -141,5 +153,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-generation.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/duplicate-name.json b/packages/fixtures/27.x.x/env-worker-N/duplicate-name.json index 5381ef7..1f31470 100644 --- a/packages/fixtures/27.x.x/env-worker-N/duplicate-name.json +++ b/packages/fixtures/27.x.x/env-worker-N/duplicate-name.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" @@ -202,6 +205,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -240,6 +246,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -283,6 +292,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -387,6 +399,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -425,6 +440,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -468,6 +486,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -504,5 +525,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-name.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/early-broken.json b/packages/fixtures/27.x.x/env-worker-N/early-broken.json new file mode 100644 index 0000000..d6ddd6f --- /dev/null +++ b/packages/fixtures/27.x.x/env-worker-N/early-broken.json @@ -0,0 +1,23 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "start_describe_definition", + "testFilePath": "__tests__/early-broken.js", + "describeId": "describe_0" + }, + { + "type": "add_hook", + "testFilePath": "__tests__/early-broken.js", + "hookId": "hook_0", + "hookType": "beforeEach" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/27.x.x/env-worker-N/hook-afterAll-fail.json b/packages/fixtures/27.x.x/env-worker-N/hook-afterAll-fail.json index 0e87797..58a4a31 100644 --- a/packages/fixtures/27.x.x/env-worker-N/hook-afterAll-fail.json +++ b/packages/fixtures/27.x.x/env-worker-N/hook-afterAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" @@ -90,6 +93,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -123,5 +129,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-afterAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/hook-beforeAll-fail.json b/packages/fixtures/27.x.x/env-worker-N/hook-beforeAll-fail.json index 0b66cc3..cc41404 100644 --- a/packages/fixtures/27.x.x/env-worker-N/hook-beforeAll-fail.json +++ b/packages/fixtures/27.x.x/env-worker-N/hook-beforeAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" @@ -94,6 +97,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -107,5 +113,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/hook-nesting.json b/packages/fixtures/27.x.x/env-worker-N/hook-nesting.json index 5a3230e..c8396ed 100644 --- a/packages/fixtures/27.x.x/env-worker-N/hook-nesting.json +++ b/packages/fixtures/27.x.x/env-worker-N/hook-nesting.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" @@ -292,6 +295,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/hook-nesting.js", @@ -394,6 +400,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -430,5 +439,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-nesting.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/test-concurrent.json b/packages/fixtures/27.x.x/env-worker-N/test-concurrent.json index d0eedb3..8521b56 100644 --- a/packages/fixtures/27.x.x/env-worker-N/test-concurrent.json +++ b/packages/fixtures/27.x.x/env-worker-N/test-concurrent.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" @@ -91,6 +94,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -129,6 +135,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -167,6 +176,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -205,6 +217,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -243,6 +258,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-concurrent.js", @@ -251,5 +269,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-concurrent.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/test-fail.json b/packages/fixtures/27.x.x/env-worker-N/test-fail.json index 966e342..8d26d70 100644 --- a/packages/fixtures/27.x.x/env-worker-N/test-fail.json +++ b/packages/fixtures/27.x.x/env-worker-N/test-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-fail.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/test-pass.json b/packages/fixtures/27.x.x/env-worker-N/test-pass.json index 90cac40..fe45b78 100644 --- a/packages/fixtures/27.x.x/env-worker-N/test-pass.json +++ b/packages/fixtures/27.x.x/env-worker-N/test-pass.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-pass.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-pass.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/test-retry.json b/packages/fixtures/27.x.x/env-worker-N/test-retry.json index 16a1444..c130325 100644 --- a/packages/fixtures/27.x.x/env-worker-N/test-retry.json +++ b/packages/fixtures/27.x.x/env-worker-N/test-retry.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" @@ -85,6 +88,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -120,6 +126,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -138,5 +147,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-retry.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/test-skip.json b/packages/fixtures/27.x.x/env-worker-N/test-skip.json index 277bd65..831784f 100644 --- a/packages/fixtures/27.x.x/env-worker-N/test-skip.json +++ b/packages/fixtures/27.x.x/env-worker-N/test-skip.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" @@ -115,5 +118,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/env-worker-N/test-todo.json b/packages/fixtures/27.x.x/env-worker-N/test-todo.json index 09de6b0..93309bb 100644 --- a/packages/fixtures/27.x.x/env-worker-N/test-todo.json +++ b/packages/fixtures/27.x.x/env-worker-N/test-todo.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" @@ -187,5 +190,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/duplicate-cases.json b/packages/fixtures/27.x.x/no-env-worker-1/duplicate-cases.json index 12148c1..4b8a1ca 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/duplicate-cases.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/duplicate-cases.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-cases.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -67,5 +82,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/duplicate-generation.json b/packages/fixtures/27.x.x/no-env-worker-1/duplicate-generation.json index 57aeb4e..7a6e146 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/duplicate-generation.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/duplicate-generation.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-generation.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-generation.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -47,5 +59,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/duplicate-name.json b/packages/fixtures/27.x.x/no-env-worker-1/duplicate-name.json index 89289dd..368c94c 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/duplicate-name.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/duplicate-name.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-name.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -48,6 +60,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -63,6 +78,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -78,6 +96,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -88,6 +109,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", diff --git a/packages/fixtures/27.x.x/no-env-worker-1/early-broken.json b/packages/fixtures/27.x.x/no-env-worker-1/early-broken.json new file mode 100644 index 0000000..03e0dfd --- /dev/null +++ b/packages/fixtures/27.x.x/no-env-worker-1/early-broken.json @@ -0,0 +1,12 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/hook-afterAll-fail.json b/packages/fixtures/27.x.x/no-env-worker-1/hook-afterAll-fail.json index 2af7977..851739f 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/hook-afterAll-fail.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/hook-afterAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/hook-beforeAll-fail.json b/packages/fixtures/27.x.x/no-env-worker-1/hook-beforeAll-fail.json index 27afeb4..86cf3cb 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/hook-beforeAll-fail.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/hook-beforeAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-beforeAll-fail.js", diff --git a/packages/fixtures/27.x.x/no-env-worker-1/hook-nesting.json b/packages/fixtures/27.x.x/no-env-worker-1/hook-nesting.json index 9a54d95..eb886af 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/hook-nesting.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/hook-nesting.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-nesting.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-nesting.js", @@ -37,5 +46,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/test-concurrent.json b/packages/fixtures/27.x.x/no-env-worker-1/test-concurrent.json index 4fd4049..1af7b25 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/test-concurrent.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/test-concurrent.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-concurrent.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -68,6 +83,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -82,5 +100,8 @@ "type": "test_done", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/test-fail.json b/packages/fixtures/27.x.x/no-env-worker-1/test-fail.json index 121e97d..4682515 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/test-fail.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/test-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/test-pass.json b/packages/fixtures/27.x.x/no-env-worker-1/test-pass.json index a190239..4379649 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/test-pass.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/test-pass.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-pass.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-pass.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/test-retry.json b/packages/fixtures/27.x.x/no-env-worker-1/test-retry.json index ee8b98f..797cfca 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/test-retry.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/test-retry.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-retry.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -32,5 +41,8 @@ "type": "test_done", "testFilePath": "__tests__/test-retry.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/test-skip.json b/packages/fixtures/27.x.x/no-env-worker-1/test-skip.json index 1a9a6dc..759aaed 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/test-skip.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/test-skip.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-1/test-todo.json b/packages/fixtures/27.x.x/no-env-worker-1/test-todo.json index 57a2932..b4068ff 100644 --- a/packages/fixtures/27.x.x/no-env-worker-1/test-todo.json +++ b/packages/fixtures/27.x.x/no-env-worker-1/test-todo.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/duplicate-cases.json b/packages/fixtures/27.x.x/no-env-worker-N/duplicate-cases.json index 12148c1..4b8a1ca 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/duplicate-cases.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/duplicate-cases.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-cases.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -67,5 +82,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/duplicate-generation.json b/packages/fixtures/27.x.x/no-env-worker-N/duplicate-generation.json index 57aeb4e..7a6e146 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/duplicate-generation.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/duplicate-generation.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-generation.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-generation.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -47,5 +59,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/duplicate-name.json b/packages/fixtures/27.x.x/no-env-worker-N/duplicate-name.json index 89289dd..368c94c 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/duplicate-name.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/duplicate-name.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-name.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -48,6 +60,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -63,6 +78,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -78,6 +96,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -88,6 +109,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", diff --git a/packages/fixtures/27.x.x/no-env-worker-N/early-broken.json b/packages/fixtures/27.x.x/no-env-worker-N/early-broken.json new file mode 100644 index 0000000..03e0dfd --- /dev/null +++ b/packages/fixtures/27.x.x/no-env-worker-N/early-broken.json @@ -0,0 +1,12 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/hook-afterAll-fail.json b/packages/fixtures/27.x.x/no-env-worker-N/hook-afterAll-fail.json index 2af7977..851739f 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/hook-afterAll-fail.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/hook-afterAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/hook-beforeAll-fail.json b/packages/fixtures/27.x.x/no-env-worker-N/hook-beforeAll-fail.json index 27afeb4..86cf3cb 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/hook-beforeAll-fail.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/hook-beforeAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-beforeAll-fail.js", diff --git a/packages/fixtures/27.x.x/no-env-worker-N/hook-nesting.json b/packages/fixtures/27.x.x/no-env-worker-N/hook-nesting.json index 9a54d95..eb886af 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/hook-nesting.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/hook-nesting.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-nesting.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-nesting.js", @@ -37,5 +46,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/test-concurrent.json b/packages/fixtures/27.x.x/no-env-worker-N/test-concurrent.json index 4fd4049..1af7b25 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/test-concurrent.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/test-concurrent.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-concurrent.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -68,6 +83,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -82,5 +100,8 @@ "type": "test_done", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/test-fail.json b/packages/fixtures/27.x.x/no-env-worker-N/test-fail.json index 121e97d..4682515 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/test-fail.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/test-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/test-pass.json b/packages/fixtures/27.x.x/no-env-worker-N/test-pass.json index a190239..4379649 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/test-pass.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/test-pass.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-pass.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-pass.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/test-retry.json b/packages/fixtures/27.x.x/no-env-worker-N/test-retry.json index ee8b98f..797cfca 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/test-retry.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/test-retry.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-retry.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -32,5 +41,8 @@ "type": "test_done", "testFilePath": "__tests__/test-retry.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/test-skip.json b/packages/fixtures/27.x.x/no-env-worker-N/test-skip.json index 1a9a6dc..759aaed 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/test-skip.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/test-skip.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/27.x.x/no-env-worker-N/test-todo.json b/packages/fixtures/27.x.x/no-env-worker-N/test-todo.json index 57a2932..b4068ff 100644 --- a/packages/fixtures/27.x.x/no-env-worker-N/test-todo.json +++ b/packages/fixtures/27.x.x/no-env-worker-N/test-todo.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/duplicate-cases.json b/packages/fixtures/28.x.x/env-worker-1/duplicate-cases.json index 432f71b..d6e3b7a 100644 --- a/packages/fixtures/28.x.x/env-worker-1/duplicate-cases.json +++ b/packages/fixtures/28.x.x/env-worker-1/duplicate-cases.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" @@ -103,6 +106,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -133,6 +139,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -173,6 +182,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -203,6 +215,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -216,5 +231,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-cases.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/duplicate-generation.json b/packages/fixtures/28.x.x/env-worker-1/duplicate-generation.json index b3a7359..4eb18dd 100644 --- a/packages/fixtures/28.x.x/env-worker-1/duplicate-generation.json +++ b/packages/fixtures/28.x.x/env-worker-1/duplicate-generation.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" @@ -68,6 +71,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -98,6 +104,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -133,6 +142,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-generation.js", @@ -141,5 +153,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-generation.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/duplicate-name.json b/packages/fixtures/28.x.x/env-worker-1/duplicate-name.json index 5381ef7..1f31470 100644 --- a/packages/fixtures/28.x.x/env-worker-1/duplicate-name.json +++ b/packages/fixtures/28.x.x/env-worker-1/duplicate-name.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" @@ -202,6 +205,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -240,6 +246,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -283,6 +292,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -387,6 +399,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -425,6 +440,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -468,6 +486,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -504,5 +525,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-name.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/early-broken.json b/packages/fixtures/28.x.x/env-worker-1/early-broken.json new file mode 100644 index 0000000..d6ddd6f --- /dev/null +++ b/packages/fixtures/28.x.x/env-worker-1/early-broken.json @@ -0,0 +1,23 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "start_describe_definition", + "testFilePath": "__tests__/early-broken.js", + "describeId": "describe_0" + }, + { + "type": "add_hook", + "testFilePath": "__tests__/early-broken.js", + "hookId": "hook_0", + "hookType": "beforeEach" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/28.x.x/env-worker-1/hook-afterAll-fail.json b/packages/fixtures/28.x.x/env-worker-1/hook-afterAll-fail.json index 0e87797..58a4a31 100644 --- a/packages/fixtures/28.x.x/env-worker-1/hook-afterAll-fail.json +++ b/packages/fixtures/28.x.x/env-worker-1/hook-afterAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" @@ -90,6 +93,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -123,5 +129,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-afterAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/hook-beforeAll-fail.json b/packages/fixtures/28.x.x/env-worker-1/hook-beforeAll-fail.json index 0b66cc3..cc41404 100644 --- a/packages/fixtures/28.x.x/env-worker-1/hook-beforeAll-fail.json +++ b/packages/fixtures/28.x.x/env-worker-1/hook-beforeAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" @@ -94,6 +97,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -107,5 +113,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/hook-nesting.json b/packages/fixtures/28.x.x/env-worker-1/hook-nesting.json index 5a3230e..c8396ed 100644 --- a/packages/fixtures/28.x.x/env-worker-1/hook-nesting.json +++ b/packages/fixtures/28.x.x/env-worker-1/hook-nesting.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" @@ -292,6 +295,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/hook-nesting.js", @@ -394,6 +400,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -430,5 +439,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-nesting.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/test-concurrent.json b/packages/fixtures/28.x.x/env-worker-1/test-concurrent.json index 9d9ee38..143eac7 100644 --- a/packages/fixtures/28.x.x/env-worker-1/test-concurrent.json +++ b/packages/fixtures/28.x.x/env-worker-1/test-concurrent.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" @@ -81,6 +84,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -109,6 +115,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -137,6 +146,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -165,6 +177,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -193,6 +208,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-concurrent.js", @@ -201,5 +219,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-concurrent.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/test-fail.json b/packages/fixtures/28.x.x/env-worker-1/test-fail.json index 966e342..8d26d70 100644 --- a/packages/fixtures/28.x.x/env-worker-1/test-fail.json +++ b/packages/fixtures/28.x.x/env-worker-1/test-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-fail.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/test-pass.json b/packages/fixtures/28.x.x/env-worker-1/test-pass.json index 90cac40..fe45b78 100644 --- a/packages/fixtures/28.x.x/env-worker-1/test-pass.json +++ b/packages/fixtures/28.x.x/env-worker-1/test-pass.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-pass.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-pass.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/test-retry.json b/packages/fixtures/28.x.x/env-worker-1/test-retry.json index 16a1444..c130325 100644 --- a/packages/fixtures/28.x.x/env-worker-1/test-retry.json +++ b/packages/fixtures/28.x.x/env-worker-1/test-retry.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" @@ -85,6 +88,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -120,6 +126,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -138,5 +147,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-retry.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/test-skip.json b/packages/fixtures/28.x.x/env-worker-1/test-skip.json index 277bd65..831784f 100644 --- a/packages/fixtures/28.x.x/env-worker-1/test-skip.json +++ b/packages/fixtures/28.x.x/env-worker-1/test-skip.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" @@ -115,5 +118,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-1/test-todo.json b/packages/fixtures/28.x.x/env-worker-1/test-todo.json index 09de6b0..93309bb 100644 --- a/packages/fixtures/28.x.x/env-worker-1/test-todo.json +++ b/packages/fixtures/28.x.x/env-worker-1/test-todo.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" @@ -187,5 +190,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/duplicate-cases.json b/packages/fixtures/28.x.x/env-worker-N/duplicate-cases.json index 432f71b..d6e3b7a 100644 --- a/packages/fixtures/28.x.x/env-worker-N/duplicate-cases.json +++ b/packages/fixtures/28.x.x/env-worker-N/duplicate-cases.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" @@ -103,6 +106,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -133,6 +139,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -173,6 +182,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -203,6 +215,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -216,5 +231,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-cases.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/duplicate-generation.json b/packages/fixtures/28.x.x/env-worker-N/duplicate-generation.json index b3a7359..4eb18dd 100644 --- a/packages/fixtures/28.x.x/env-worker-N/duplicate-generation.json +++ b/packages/fixtures/28.x.x/env-worker-N/duplicate-generation.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" @@ -68,6 +71,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -98,6 +104,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -133,6 +142,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-generation.js", @@ -141,5 +153,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-generation.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/duplicate-name.json b/packages/fixtures/28.x.x/env-worker-N/duplicate-name.json index 5381ef7..1f31470 100644 --- a/packages/fixtures/28.x.x/env-worker-N/duplicate-name.json +++ b/packages/fixtures/28.x.x/env-worker-N/duplicate-name.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" @@ -202,6 +205,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -240,6 +246,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -283,6 +292,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -387,6 +399,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -425,6 +440,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -468,6 +486,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -504,5 +525,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-name.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/early-broken.json b/packages/fixtures/28.x.x/env-worker-N/early-broken.json new file mode 100644 index 0000000..d6ddd6f --- /dev/null +++ b/packages/fixtures/28.x.x/env-worker-N/early-broken.json @@ -0,0 +1,23 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "start_describe_definition", + "testFilePath": "__tests__/early-broken.js", + "describeId": "describe_0" + }, + { + "type": "add_hook", + "testFilePath": "__tests__/early-broken.js", + "hookId": "hook_0", + "hookType": "beforeEach" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/28.x.x/env-worker-N/hook-afterAll-fail.json b/packages/fixtures/28.x.x/env-worker-N/hook-afterAll-fail.json index 0e87797..58a4a31 100644 --- a/packages/fixtures/28.x.x/env-worker-N/hook-afterAll-fail.json +++ b/packages/fixtures/28.x.x/env-worker-N/hook-afterAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" @@ -90,6 +93,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -123,5 +129,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-afterAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/hook-beforeAll-fail.json b/packages/fixtures/28.x.x/env-worker-N/hook-beforeAll-fail.json index 0b66cc3..cc41404 100644 --- a/packages/fixtures/28.x.x/env-worker-N/hook-beforeAll-fail.json +++ b/packages/fixtures/28.x.x/env-worker-N/hook-beforeAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" @@ -94,6 +97,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -107,5 +113,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/hook-nesting.json b/packages/fixtures/28.x.x/env-worker-N/hook-nesting.json index 5a3230e..c8396ed 100644 --- a/packages/fixtures/28.x.x/env-worker-N/hook-nesting.json +++ b/packages/fixtures/28.x.x/env-worker-N/hook-nesting.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" @@ -292,6 +295,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/hook-nesting.js", @@ -394,6 +400,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -430,5 +439,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-nesting.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/test-concurrent.json b/packages/fixtures/28.x.x/env-worker-N/test-concurrent.json index 9d9ee38..143eac7 100644 --- a/packages/fixtures/28.x.x/env-worker-N/test-concurrent.json +++ b/packages/fixtures/28.x.x/env-worker-N/test-concurrent.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" @@ -81,6 +84,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -109,6 +115,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -137,6 +146,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -165,6 +177,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -193,6 +208,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-concurrent.js", @@ -201,5 +219,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-concurrent.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/test-fail.json b/packages/fixtures/28.x.x/env-worker-N/test-fail.json index 966e342..8d26d70 100644 --- a/packages/fixtures/28.x.x/env-worker-N/test-fail.json +++ b/packages/fixtures/28.x.x/env-worker-N/test-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-fail.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/test-pass.json b/packages/fixtures/28.x.x/env-worker-N/test-pass.json index 90cac40..fe45b78 100644 --- a/packages/fixtures/28.x.x/env-worker-N/test-pass.json +++ b/packages/fixtures/28.x.x/env-worker-N/test-pass.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-pass.js", @@ -71,5 +77,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-pass.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/test-retry.json b/packages/fixtures/28.x.x/env-worker-N/test-retry.json index 16a1444..c130325 100644 --- a/packages/fixtures/28.x.x/env-worker-N/test-retry.json +++ b/packages/fixtures/28.x.x/env-worker-N/test-retry.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" @@ -85,6 +88,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -120,6 +126,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -138,5 +147,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-retry.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/test-skip.json b/packages/fixtures/28.x.x/env-worker-N/test-skip.json index 277bd65..831784f 100644 --- a/packages/fixtures/28.x.x/env-worker-N/test-skip.json +++ b/packages/fixtures/28.x.x/env-worker-N/test-skip.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" @@ -115,5 +118,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/env-worker-N/test-todo.json b/packages/fixtures/28.x.x/env-worker-N/test-todo.json index 09de6b0..93309bb 100644 --- a/packages/fixtures/28.x.x/env-worker-N/test-todo.json +++ b/packages/fixtures/28.x.x/env-worker-N/test-todo.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" @@ -187,5 +190,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/duplicate-cases.json b/packages/fixtures/28.x.x/no-env-worker-1/duplicate-cases.json index 12148c1..4b8a1ca 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/duplicate-cases.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/duplicate-cases.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-cases.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -67,5 +82,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/duplicate-generation.json b/packages/fixtures/28.x.x/no-env-worker-1/duplicate-generation.json index 57aeb4e..7a6e146 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/duplicate-generation.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/duplicate-generation.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-generation.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-generation.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -47,5 +59,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/duplicate-name.json b/packages/fixtures/28.x.x/no-env-worker-1/duplicate-name.json index 89289dd..368c94c 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/duplicate-name.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/duplicate-name.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-name.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -48,6 +60,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -63,6 +78,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -78,6 +96,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -88,6 +109,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", diff --git a/packages/fixtures/28.x.x/no-env-worker-1/early-broken.json b/packages/fixtures/28.x.x/no-env-worker-1/early-broken.json new file mode 100644 index 0000000..03e0dfd --- /dev/null +++ b/packages/fixtures/28.x.x/no-env-worker-1/early-broken.json @@ -0,0 +1,12 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/hook-afterAll-fail.json b/packages/fixtures/28.x.x/no-env-worker-1/hook-afterAll-fail.json index 2af7977..851739f 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/hook-afterAll-fail.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/hook-afterAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/hook-beforeAll-fail.json b/packages/fixtures/28.x.x/no-env-worker-1/hook-beforeAll-fail.json index 27afeb4..86cf3cb 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/hook-beforeAll-fail.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/hook-beforeAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-beforeAll-fail.js", diff --git a/packages/fixtures/28.x.x/no-env-worker-1/hook-nesting.json b/packages/fixtures/28.x.x/no-env-worker-1/hook-nesting.json index 9a54d95..eb886af 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/hook-nesting.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/hook-nesting.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-nesting.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-nesting.js", @@ -37,5 +46,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/test-concurrent.json b/packages/fixtures/28.x.x/no-env-worker-1/test-concurrent.json index 4fd4049..1af7b25 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/test-concurrent.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/test-concurrent.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-concurrent.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -68,6 +83,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -82,5 +100,8 @@ "type": "test_done", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/test-fail.json b/packages/fixtures/28.x.x/no-env-worker-1/test-fail.json index 121e97d..4682515 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/test-fail.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/test-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/test-pass.json b/packages/fixtures/28.x.x/no-env-worker-1/test-pass.json index a190239..4379649 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/test-pass.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/test-pass.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-pass.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-pass.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/test-retry.json b/packages/fixtures/28.x.x/no-env-worker-1/test-retry.json index ee8b98f..797cfca 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/test-retry.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/test-retry.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-retry.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -32,5 +41,8 @@ "type": "test_done", "testFilePath": "__tests__/test-retry.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/test-skip.json b/packages/fixtures/28.x.x/no-env-worker-1/test-skip.json index 1a9a6dc..759aaed 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/test-skip.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/test-skip.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-1/test-todo.json b/packages/fixtures/28.x.x/no-env-worker-1/test-todo.json index 57a2932..b4068ff 100644 --- a/packages/fixtures/28.x.x/no-env-worker-1/test-todo.json +++ b/packages/fixtures/28.x.x/no-env-worker-1/test-todo.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/duplicate-cases.json b/packages/fixtures/28.x.x/no-env-worker-N/duplicate-cases.json index 12148c1..4b8a1ca 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/duplicate-cases.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/duplicate-cases.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-cases.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -67,5 +82,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/duplicate-generation.json b/packages/fixtures/28.x.x/no-env-worker-N/duplicate-generation.json index 57aeb4e..7a6e146 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/duplicate-generation.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/duplicate-generation.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-generation.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-generation.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -47,5 +59,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/duplicate-name.json b/packages/fixtures/28.x.x/no-env-worker-N/duplicate-name.json index 89289dd..368c94c 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/duplicate-name.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/duplicate-name.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-name.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -48,6 +60,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -63,6 +78,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -78,6 +96,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -88,6 +109,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", diff --git a/packages/fixtures/28.x.x/no-env-worker-N/early-broken.json b/packages/fixtures/28.x.x/no-env-worker-N/early-broken.json new file mode 100644 index 0000000..03e0dfd --- /dev/null +++ b/packages/fixtures/28.x.x/no-env-worker-N/early-broken.json @@ -0,0 +1,12 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/hook-afterAll-fail.json b/packages/fixtures/28.x.x/no-env-worker-N/hook-afterAll-fail.json index 2af7977..851739f 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/hook-afterAll-fail.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/hook-afterAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/hook-beforeAll-fail.json b/packages/fixtures/28.x.x/no-env-worker-N/hook-beforeAll-fail.json index 27afeb4..86cf3cb 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/hook-beforeAll-fail.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/hook-beforeAll-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-beforeAll-fail.js", diff --git a/packages/fixtures/28.x.x/no-env-worker-N/hook-nesting.json b/packages/fixtures/28.x.x/no-env-worker-N/hook-nesting.json index 9a54d95..eb886af 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/hook-nesting.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/hook-nesting.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-nesting.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-nesting.js", @@ -37,5 +46,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/test-concurrent.json b/packages/fixtures/28.x.x/no-env-worker-N/test-concurrent.json index 4fd4049..1af7b25 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/test-concurrent.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/test-concurrent.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-concurrent.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -38,6 +47,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -53,6 +65,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -68,6 +83,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -82,5 +100,8 @@ "type": "test_done", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/test-fail.json b/packages/fixtures/28.x.x/no-env-worker-N/test-fail.json index 121e97d..4682515 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/test-fail.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/test-fail.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-fail.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/test-pass.json b/packages/fixtures/28.x.x/no-env-worker-N/test-pass.json index a190239..4379649 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/test-pass.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/test-pass.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-pass.js", @@ -22,5 +28,8 @@ "type": "test_done", "testFilePath": "__tests__/test-pass.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/test-retry.json b/packages/fixtures/28.x.x/no-env-worker-N/test-retry.json index ee8b98f..797cfca 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/test-retry.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/test-retry.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-retry.js", @@ -23,6 +29,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -32,5 +41,8 @@ "type": "test_done", "testFilePath": "__tests__/test-retry.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/test-skip.json b/packages/fixtures/28.x.x/no-env-worker-N/test-skip.json index 1a9a6dc..759aaed 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/test-skip.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/test-skip.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/28.x.x/no-env-worker-N/test-todo.json b/packages/fixtures/28.x.x/no-env-worker-N/test-todo.json index 57a2932..b4068ff 100644 --- a/packages/fixtures/28.x.x/no-env-worker-N/test-todo.json +++ b/packages/fixtures/28.x.x/no-env-worker-N/test-todo.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/duplicate-cases.json b/packages/fixtures/29.x.x/env-worker-1/duplicate-cases.json index 82cf134..7abc300 100644 --- a/packages/fixtures/29.x.x/env-worker-1/duplicate-cases.json +++ b/packages/fixtures/29.x.x/env-worker-1/duplicate-cases.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" @@ -83,6 +86,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -108,6 +114,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -118,6 +127,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -143,6 +155,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -163,6 +178,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -188,6 +206,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -198,6 +219,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-cases.js", @@ -223,6 +247,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -236,5 +263,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-cases.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/duplicate-generation.json b/packages/fixtures/29.x.x/env-worker-1/duplicate-generation.json index ab8409d..74a462a 100644 --- a/packages/fixtures/29.x.x/env-worker-1/duplicate-generation.json +++ b/packages/fixtures/29.x.x/env-worker-1/duplicate-generation.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" @@ -48,6 +51,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -73,6 +79,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -83,6 +92,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -108,6 +120,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -123,6 +138,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-generation.js", @@ -148,6 +166,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-generation.js", @@ -156,5 +177,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-generation.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/duplicate-name.json b/packages/fixtures/29.x.x/env-worker-1/duplicate-name.json index 28d62f4..887125d 100644 --- a/packages/fixtures/29.x.x/env-worker-1/duplicate-name.json +++ b/packages/fixtures/29.x.x/env-worker-1/duplicate-name.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" @@ -174,6 +177,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -207,6 +213,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -217,6 +226,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -250,6 +262,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -265,6 +280,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -298,6 +316,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -341,6 +362,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_start", "testFilePath": "__tests__/duplicate-name.js", @@ -374,6 +398,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -407,6 +434,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", @@ -417,6 +447,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -450,6 +483,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -465,6 +501,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -498,6 +537,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -534,5 +576,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-name.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/early-broken.json b/packages/fixtures/29.x.x/env-worker-1/early-broken.json new file mode 100644 index 0000000..d6ddd6f --- /dev/null +++ b/packages/fixtures/29.x.x/env-worker-1/early-broken.json @@ -0,0 +1,23 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "start_describe_definition", + "testFilePath": "__tests__/early-broken.js", + "describeId": "describe_0" + }, + { + "type": "add_hook", + "testFilePath": "__tests__/early-broken.js", + "hookId": "hook_0", + "hookType": "beforeEach" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/29.x.x/env-worker-1/hook-afterAll-fail.json b/packages/fixtures/29.x.x/env-worker-1/hook-afterAll-fail.json index 24f592a..7546673 100644 --- a/packages/fixtures/29.x.x/env-worker-1/hook-afterAll-fail.json +++ b/packages/fixtures/29.x.x/env-worker-1/hook-afterAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" @@ -70,6 +73,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -95,6 +101,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -128,5 +137,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-afterAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/hook-beforeAll-fail.json b/packages/fixtures/29.x.x/env-worker-1/hook-beforeAll-fail.json index 430c094..671df76 100644 --- a/packages/fixtures/29.x.x/env-worker-1/hook-beforeAll-fail.json +++ b/packages/fixtures/29.x.x/env-worker-1/hook-beforeAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" @@ -89,6 +92,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_fn_start", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -99,6 +105,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -112,5 +121,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/hook-nesting.json b/packages/fixtures/29.x.x/env-worker-1/hook-nesting.json index f4df17f..f4dc864 100644 --- a/packages/fixtures/29.x.x/env-worker-1/hook-nesting.json +++ b/packages/fixtures/29.x.x/env-worker-1/hook-nesting.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" @@ -200,6 +203,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -297,6 +303,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/hook-nesting.js", @@ -307,6 +316,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -404,6 +416,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -440,5 +455,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-nesting.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/test-concurrent.json b/packages/fixtures/29.x.x/env-worker-1/test-concurrent.json index a0bb6d8..0af51d4 100644 --- a/packages/fixtures/29.x.x/env-worker-1/test-concurrent.json +++ b/packages/fixtures/29.x.x/env-worker-1/test-concurrent.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" @@ -63,6 +66,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_fn_start", "testFilePath": "__tests__/test-concurrent.js", @@ -86,6 +92,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -96,6 +105,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_fn_start", "testFilePath": "__tests__/test-concurrent.js", @@ -119,6 +131,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -129,6 +144,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_fn_start", "testFilePath": "__tests__/test-concurrent.js", @@ -152,6 +170,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -162,6 +183,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_fn_start", "testFilePath": "__tests__/test-concurrent.js", @@ -185,6 +209,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", @@ -195,6 +222,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_fn_start", "testFilePath": "__tests__/test-concurrent.js", @@ -218,6 +248,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-concurrent.js", @@ -226,5 +259,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-concurrent.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/test-fail.json b/packages/fixtures/29.x.x/env-worker-1/test-fail.json index 274a03b..12dc75e 100644 --- a/packages/fixtures/29.x.x/env-worker-1/test-fail.json +++ b/packages/fixtures/29.x.x/env-worker-1/test-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" @@ -43,6 +46,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/test-fail.js", @@ -68,6 +74,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-fail.js", @@ -76,5 +85,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/test-pass.json b/packages/fixtures/29.x.x/env-worker-1/test-pass.json index 7078efc..fbbc22d 100644 --- a/packages/fixtures/29.x.x/env-worker-1/test-pass.json +++ b/packages/fixtures/29.x.x/env-worker-1/test-pass.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" @@ -43,6 +46,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/test-pass.js", @@ -68,6 +74,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-pass.js", @@ -76,5 +85,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-pass.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/test-retry.json b/packages/fixtures/29.x.x/env-worker-1/test-retry.json index 8936fe9..9beb325 100644 --- a/packages/fixtures/29.x.x/env-worker-1/test-retry.json +++ b/packages/fixtures/29.x.x/env-worker-1/test-retry.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" @@ -65,6 +68,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -90,6 +96,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -105,6 +114,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -130,6 +142,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -148,5 +163,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-retry.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/test-skip.json b/packages/fixtures/29.x.x/env-worker-1/test-skip.json index 277bd65..831784f 100644 --- a/packages/fixtures/29.x.x/env-worker-1/test-skip.json +++ b/packages/fixtures/29.x.x/env-worker-1/test-skip.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" @@ -115,5 +118,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-1/test-todo.json b/packages/fixtures/29.x.x/env-worker-1/test-todo.json index 09de6b0..74e505b 100644 --- a/packages/fixtures/29.x.x/env-worker-1/test-todo.json +++ b/packages/fixtures/29.x.x/env-worker-1/test-todo.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" @@ -133,6 +136,9 @@ "testFilePath": "__tests__/test-todo.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-todo.js", @@ -187,5 +193,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/duplicate-cases.json b/packages/fixtures/29.x.x/env-worker-N/duplicate-cases.json index 82cf134..b9b3261 100644 --- a/packages/fixtures/29.x.x/env-worker-N/duplicate-cases.json +++ b/packages/fixtures/29.x.x/env-worker-N/duplicate-cases.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" @@ -78,6 +81,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-cases.js", @@ -108,11 +114,17 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-cases.js", @@ -143,6 +155,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -158,6 +173,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-cases.js", @@ -188,11 +206,17 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-cases.js", @@ -223,6 +247,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-cases.js", @@ -236,5 +263,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-cases.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/duplicate-generation.json b/packages/fixtures/29.x.x/env-worker-N/duplicate-generation.json index ab8409d..e40381a 100644 --- a/packages/fixtures/29.x.x/env-worker-N/duplicate-generation.json +++ b/packages/fixtures/29.x.x/env-worker-N/duplicate-generation.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" @@ -43,6 +46,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-generation.js", @@ -73,11 +79,17 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-generation.js", @@ -108,6 +120,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -118,6 +133,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-generation.js", @@ -148,6 +166,9 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/duplicate-generation.js", @@ -156,5 +177,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-generation.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/duplicate-name.json b/packages/fixtures/29.x.x/env-worker-N/duplicate-name.json index 28d62f4..1296392 100644 --- a/packages/fixtures/29.x.x/env-worker-N/duplicate-name.json +++ b/packages/fixtures/29.x.x/env-worker-N/duplicate-name.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" @@ -169,6 +172,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-name.js", @@ -207,11 +213,17 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-name.js", @@ -250,6 +262,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -260,6 +275,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-name.js", @@ -298,6 +316,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -336,6 +357,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_todo", "testFilePath": "__tests__/duplicate-name.js", @@ -369,6 +393,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-name.js", @@ -407,11 +434,17 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-name.js", @@ -450,6 +483,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_5" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -460,6 +496,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/duplicate-name.js", @@ -498,6 +537,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/duplicate-name.js", @@ -534,5 +576,8 @@ { "type": "run_finish", "testFilePath": "__tests__/duplicate-name.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/early-broken.json b/packages/fixtures/29.x.x/env-worker-N/early-broken.json new file mode 100644 index 0000000..d6ddd6f --- /dev/null +++ b/packages/fixtures/29.x.x/env-worker-N/early-broken.json @@ -0,0 +1,23 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "start_describe_definition", + "testFilePath": "__tests__/early-broken.js", + "describeId": "describe_0" + }, + { + "type": "add_hook", + "testFilePath": "__tests__/early-broken.js", + "hookId": "hook_0", + "hookType": "beforeEach" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/29.x.x/env-worker-N/hook-afterAll-fail.json b/packages/fixtures/29.x.x/env-worker-N/hook-afterAll-fail.json index 24f592a..dc25a87 100644 --- a/packages/fixtures/29.x.x/env-worker-N/hook-afterAll-fail.json +++ b/packages/fixtures/29.x.x/env-worker-N/hook-afterAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" @@ -65,6 +68,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -95,6 +101,9 @@ "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -128,5 +137,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-afterAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/hook-beforeAll-fail.json b/packages/fixtures/29.x.x/env-worker-N/hook-beforeAll-fail.json index 430c094..4fa16a8 100644 --- a/packages/fixtures/29.x.x/env-worker-N/hook-beforeAll-fail.json +++ b/packages/fixtures/29.x.x/env-worker-N/hook-beforeAll-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" @@ -84,6 +87,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -99,6 +105,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -112,5 +121,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-beforeAll-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/hook-nesting.json b/packages/fixtures/29.x.x/env-worker-N/hook-nesting.json index f4df17f..ed35f12 100644 --- a/packages/fixtures/29.x.x/env-worker-N/hook-nesting.json +++ b/packages/fixtures/29.x.x/env-worker-N/hook-nesting.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" @@ -195,6 +198,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/hook-nesting.js", @@ -297,11 +303,17 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/hook-nesting.js", @@ -404,6 +416,9 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/hook-nesting.js", @@ -440,5 +455,8 @@ { "type": "run_finish", "testFilePath": "__tests__/hook-nesting.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/test-concurrent.json b/packages/fixtures/29.x.x/env-worker-N/test-concurrent.json index a0bb6d8..4d5bd88 100644 --- a/packages/fixtures/29.x.x/env-worker-N/test-concurrent.json +++ b/packages/fixtures/29.x.x/env-worker-N/test-concurrent.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" @@ -58,6 +61,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-concurrent.js", @@ -86,11 +92,17 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-concurrent.js", @@ -119,11 +131,17 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-concurrent.js", @@ -152,11 +170,17 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-concurrent.js", @@ -185,11 +209,17 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_start", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-concurrent.js", @@ -218,6 +248,9 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-concurrent.js", @@ -226,5 +259,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-concurrent.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/test-fail.json b/packages/fixtures/29.x.x/env-worker-N/test-fail.json index 274a03b..35ef866 100644 --- a/packages/fixtures/29.x.x/env-worker-N/test-fail.json +++ b/packages/fixtures/29.x.x/env-worker-N/test-fail.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" @@ -38,6 +41,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-fail.js", @@ -68,6 +74,9 @@ "testFilePath": "__tests__/test-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-fail.js", @@ -76,5 +85,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-fail.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/test-pass.json b/packages/fixtures/29.x.x/env-worker-N/test-pass.json index 7078efc..838f869 100644 --- a/packages/fixtures/29.x.x/env-worker-N/test-pass.json +++ b/packages/fixtures/29.x.x/env-worker-N/test-pass.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" @@ -38,6 +41,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-pass.js", @@ -68,6 +74,9 @@ "testFilePath": "__tests__/test-pass.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "run_describe_finish", "testFilePath": "__tests__/test-pass.js", @@ -76,5 +85,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-pass.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/test-retry.json b/packages/fixtures/29.x.x/env-worker-N/test-retry.json index 8936fe9..d201c42 100644 --- a/packages/fixtures/29.x.x/env-worker-N/test-retry.json +++ b/packages/fixtures/29.x.x/env-worker-N/test-retry.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" @@ -60,6 +63,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-retry.js", @@ -90,6 +96,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -100,6 +109,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, { "type": "test_started", "testFilePath": "__tests__/test-retry.js", @@ -130,6 +142,9 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "hook_start", "testFilePath": "__tests__/test-retry.js", @@ -148,5 +163,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-retry.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/test-skip.json b/packages/fixtures/29.x.x/env-worker-N/test-skip.json index 277bd65..831784f 100644 --- a/packages/fixtures/29.x.x/env-worker-N/test-skip.json +++ b/packages/fixtures/29.x.x/env-worker-N/test-skip.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" @@ -115,5 +118,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/env-worker-N/test-todo.json b/packages/fixtures/29.x.x/env-worker-N/test-todo.json index 09de6b0..d8e72d6 100644 --- a/packages/fixtures/29.x.x/env-worker-N/test-todo.json +++ b/packages/fixtures/29.x.x/env-worker-N/test-todo.json @@ -1,4 +1,7 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" @@ -128,6 +131,9 @@ "testFilePath": "__tests__/test-todo.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_todo", "testFilePath": "__tests__/test-todo.js", @@ -187,5 +193,8 @@ { "type": "run_finish", "testFilePath": "__tests__/test-todo.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/aggregatedResult.json b/packages/fixtures/29.x.x/no-env-worker-1/aggregatedResult.json index ed15980..d5a9f1e 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/aggregatedResult.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/aggregatedResult.json @@ -3,8 +3,290 @@ "type": "set_metadata", "testFilePath": "", "targetId": "aggregatedResult", - "path": "vendor.runStartedAt", - "value": "2023-01-01T00:00:00.000Z", + "path": "test.slept", + "value": 100, + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "test.slept", + "value": 200, + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "test.slept", + "value": 300, + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "test.slept", + "value": 400, + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "test.slept", + "value": 500, + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Suite", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 1 > beforeAll", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 1 > Test 1", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 1 > Test 2", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 1 > Test 2", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 1 > afterAll", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 2 > beforeAll", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 2 > Test 1", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 2 > Test 2", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 2 > Test 1", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "Nested suite 2 > afterAll", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Open the browser", + "startedAt": 1672524000000 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Goto the URL: https://example.com", + "startedAt": 1672524001000 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Enter invalid credentials", + "startedAt": 1672524001100 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Assert that the login failed", + "startedAt": 1672524001200 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Clear cookies", + "startedAt": 1672524001200 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Goto the URL: https://example.com", + "startedAt": 1672524001250 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Enter valid credentials", + "startedAt": 1672524001350 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Assert that the login succeeded", + "startedAt": 1672524001450 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Clear cookies", + "startedAt": 1672524001450 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "vendor.steps", + "value": [ + { + "text": "Close the browser", + "startedAt": 1672524001500 + } + ], + "operation": "push" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "beforeAll", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "beforeAll inner", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "afterAll inner", + "operation": "set" + }, + { + "type": "set_metadata", + "testFilePath": "", + "targetId": "aggregatedResult", + "path": "note", + "value": "afterAll", "operation": "set" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/duplicate-cases.json b/packages/fixtures/29.x.x/no-env-worker-1/duplicate-cases.json index 12148c1..da5cd73 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/duplicate-cases.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/duplicate-cases.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-cases.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -53,6 +74,12 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -67,5 +94,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/duplicate-generation.json b/packages/fixtures/29.x.x/no-env-worker-1/duplicate-generation.json index 57aeb4e..92d764c 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/duplicate-generation.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/duplicate-generation.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-generation.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-generation.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -47,5 +68,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/duplicate-name.json b/packages/fixtures/29.x.x/no-env-worker-1/duplicate-name.json index 1703d3a..0a5a601 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/duplicate-name.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/duplicate-name.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-name.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -48,6 +69,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -63,6 +87,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -78,6 +108,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -93,6 +129,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -103,6 +145,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", diff --git a/packages/fixtures/29.x.x/no-env-worker-1/early-broken.json b/packages/fixtures/29.x.x/no-env-worker-1/early-broken.json new file mode 100644 index 0000000..03e0dfd --- /dev/null +++ b/packages/fixtures/29.x.x/no-env-worker-1/early-broken.json @@ -0,0 +1,12 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/hook-afterAll-fail.json b/packages/fixtures/29.x.x/no-env-worker-1/hook-afterAll-fail.json index 2af7977..21162b7 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/hook-afterAll-fail.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/hook-afterAll-fail.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -22,5 +31,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/hook-beforeAll-fail.json b/packages/fixtures/29.x.x/no-env-worker-1/hook-beforeAll-fail.json index 27afeb4..7e75376 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/hook-beforeAll-fail.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/hook-beforeAll-fail.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -23,6 +32,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-beforeAll-fail.js", diff --git a/packages/fixtures/29.x.x/no-env-worker-1/hook-nesting.json b/packages/fixtures/29.x.x/no-env-worker-1/hook-nesting.json index 9a54d95..c893cca 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/hook-nesting.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/hook-nesting.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-nesting.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-nesting.js", @@ -37,5 +52,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/test-concurrent.json b/packages/fixtures/29.x.x/no-env-worker-1/test-concurrent.json index 4fd4049..61a2cac 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/test-concurrent.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/test-concurrent.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-concurrent.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -53,6 +74,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -68,6 +95,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -82,5 +115,8 @@ "type": "test_done", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/test-fail.json b/packages/fixtures/29.x.x/no-env-worker-1/test-fail.json index 121e97d..a0f40a0 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/test-fail.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/test-fail.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-fail.js", @@ -22,5 +31,8 @@ "type": "test_done", "testFilePath": "__tests__/test-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/test-pass.json b/packages/fixtures/29.x.x/no-env-worker-1/test-pass.json index a190239..c5dd6f7 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/test-pass.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/test-pass.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-pass.js", @@ -22,5 +31,8 @@ "type": "test_done", "testFilePath": "__tests__/test-pass.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/test-retry.json b/packages/fixtures/29.x.x/no-env-worker-1/test-retry.json index ee8b98f..12589e8 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/test-retry.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/test-retry.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-retry.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -32,5 +47,8 @@ "type": "test_done", "testFilePath": "__tests__/test-retry.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/test-skip.json b/packages/fixtures/29.x.x/no-env-worker-1/test-skip.json index 1a9a6dc..759aaed 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/test-skip.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/test-skip.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-1/test-todo.json b/packages/fixtures/29.x.x/no-env-worker-1/test-todo.json index 552e364..6efc89b 100644 --- a/packages/fixtures/29.x.x/no-env-worker-1/test-todo.json +++ b/packages/fixtures/29.x.x/no-env-worker-1/test-todo.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-todo.js", @@ -22,5 +28,8 @@ "type": "test_todo", "testFilePath": "__tests__/test-todo.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/duplicate-cases.json b/packages/fixtures/29.x.x/no-env-worker-N/duplicate-cases.json index 12148c1..8d35e37 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/duplicate-cases.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/duplicate-cases.json @@ -1,8 +1,20 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-cases.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-cases.js", @@ -23,6 +35,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -38,6 +53,15 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -53,6 +77,9 @@ "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-cases.js", @@ -67,5 +94,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-cases.js", "testId": "test_3" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/duplicate-generation.json b/packages/fixtures/29.x.x/no-env-worker-N/duplicate-generation.json index 57aeb4e..92d764c 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/duplicate-generation.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/duplicate-generation.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-generation.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-generation.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-generation.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-generation.js", @@ -47,5 +68,8 @@ "type": "test_done", "testFilePath": "__tests__/duplicate-generation.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/duplicate-name.json b/packages/fixtures/29.x.x/no-env-worker-N/duplicate-name.json index 1703d3a..0a5a601 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/duplicate-name.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/duplicate-name.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/duplicate-name.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/duplicate-name.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -48,6 +69,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -63,6 +87,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -78,6 +108,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", @@ -93,6 +129,12 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_4" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/duplicate-name.js", @@ -103,6 +145,9 @@ "testFilePath": "__tests__/duplicate-name.js", "testId": "test_3" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/duplicate-name.js", diff --git a/packages/fixtures/29.x.x/no-env-worker-N/early-broken.json b/packages/fixtures/29.x.x/no-env-worker-N/early-broken.json new file mode 100644 index 0000000..03e0dfd --- /dev/null +++ b/packages/fixtures/29.x.x/no-env-worker-N/early-broken.json @@ -0,0 +1,12 @@ +[ + { + "type": "reporter:onTestFileStart" + }, + { + "type": "add_test_file", + "testFilePath": "__tests__/early-broken.js" + }, + { + "type": "reporter:onTestFileResult" + } +] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail.json b/packages/fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail.json index 2af7977..21162b7 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-afterAll-fail.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-afterAll-fail.js", @@ -22,5 +31,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-afterAll-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/hook-beforeAll-fail.json b/packages/fixtures/29.x.x/no-env-worker-N/hook-beforeAll-fail.json index 27afeb4..7e75376 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/hook-beforeAll-fail.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/hook-beforeAll-fail.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-beforeAll-fail.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-beforeAll-fail.js", @@ -23,6 +32,9 @@ "testFilePath": "__tests__/hook-beforeAll-fail.js", "testId": "test_0" }, + { + "type": "reporter:onTestFileResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-beforeAll-fail.js", diff --git a/packages/fixtures/29.x.x/no-env-worker-N/hook-nesting.json b/packages/fixtures/29.x.x/no-env-worker-N/hook-nesting.json index 9a54d95..c893cca 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/hook-nesting.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/hook-nesting.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/hook-nesting.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/hook-nesting.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/hook-nesting.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/hook-nesting.js", @@ -37,5 +52,8 @@ "type": "test_done", "testFilePath": "__tests__/hook-nesting.js", "testId": "test_1" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/test-concurrent.json b/packages/fixtures/29.x.x/no-env-worker-N/test-concurrent.json index 4fd4049..61a2cac 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/test-concurrent.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/test-concurrent.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-concurrent.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-concurrent.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -38,6 +53,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_1" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -53,6 +74,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_2" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -68,6 +95,12 @@ "testFilePath": "__tests__/test-concurrent.js", "testId": "test_3" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "add_test", "testFilePath": "__tests__/test-concurrent.js", @@ -82,5 +115,8 @@ "type": "test_done", "testFilePath": "__tests__/test-concurrent.js", "testId": "test_4" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/test-fail.json b/packages/fixtures/29.x.x/no-env-worker-N/test-fail.json index 121e97d..a0f40a0 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/test-fail.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/test-fail.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-fail.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-fail.js", @@ -22,5 +31,8 @@ "type": "test_done", "testFilePath": "__tests__/test-fail.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/test-pass.json b/packages/fixtures/29.x.x/no-env-worker-N/test-pass.json index a190239..c5dd6f7 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/test-pass.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/test-pass.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-pass.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-pass.js", @@ -22,5 +31,8 @@ "type": "test_done", "testFilePath": "__tests__/test-pass.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/test-retry.json b/packages/fixtures/29.x.x/no-env-worker-N/test-retry.json index ee8b98f..12589e8 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/test-retry.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/test-retry.json @@ -1,8 +1,17 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-retry.js" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-retry.js", @@ -23,6 +32,12 @@ "testFilePath": "__tests__/test-retry.js", "testId": "test_0" }, + { + "type": "reporter:onTestCaseStart" + }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "test_retry", "testFilePath": "__tests__/test-retry.js", @@ -32,5 +47,8 @@ "type": "test_done", "testFilePath": "__tests__/test-retry.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/test-skip.json b/packages/fixtures/29.x.x/no-env-worker-N/test-skip.json index 1a9a6dc..759aaed 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/test-skip.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/test-skip.json @@ -1,6 +1,12 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-skip.js" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/fixtures/29.x.x/no-env-worker-N/test-todo.json b/packages/fixtures/29.x.x/no-env-worker-N/test-todo.json index 552e364..6efc89b 100644 --- a/packages/fixtures/29.x.x/no-env-worker-N/test-todo.json +++ b/packages/fixtures/29.x.x/no-env-worker-N/test-todo.json @@ -1,8 +1,14 @@ [ + { + "type": "reporter:onTestFileStart" + }, { "type": "add_test_file", "testFilePath": "__tests__/test-todo.js" }, + { + "type": "reporter:onTestCaseResult" + }, { "type": "start_describe_definition", "testFilePath": "__tests__/test-todo.js", @@ -22,5 +28,8 @@ "type": "test_todo", "testFilePath": "__tests__/test-todo.js", "testId": "test_0" + }, + { + "type": "reporter:onTestFileResult" } ] diff --git a/packages/library/src/metadata/MetadataEventHandler.ts b/packages/library/src/metadata/MetadataEventHandler.ts index 37dd049..312e152 100644 --- a/packages/library/src/metadata/MetadataEventHandler.ts +++ b/packages/library/src/metadata/MetadataEventHandler.ts @@ -236,6 +236,6 @@ export class MetadataEventHandler { handle = (event: MetadataEvent): void => { const handler = this._handlers[event.type] as (event: MetadataEvent) => void; - handler(event); + handler?.(event); }; } diff --git a/packages/library/src/metadata/__tests__/__snapshots__/integration.test.ts.snap b/packages/library/src/metadata/__tests__/__snapshots__/integration.test.ts.snap index 399379b..d2dd3c8 100644 --- a/packages/library/src/metadata/__tests__/__snapshots__/integration.test.ts.snap +++ b/packages/library/src/metadata/__tests__/__snapshots__/integration.test.ts.snap @@ -320,6 +320,25 @@ tests_duplicate_name_js_test_4_1_fn --> tests_duplicate_name_js_test_4_1 : test " `; +exports[`metadata - integration test: fixtures/27.x.x/env-worker-1/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +object "DescribeBlockMetadata" as tests_early_broken_js_describe_0 #ded +tests_early_broken_js_describe_0 : id = "describe_0" +object "HookDefinitionMetadata" as tests_early_broken_js_hook_0 #fdd +tests_early_broken_js_hook_0 : id = "hook_0" +tests_early_broken_js_hook_0 : hookType = "beforeEach" +aggregated_result --> tests_early_broken_js : testResults[0] +tests_early_broken_js --> tests_early_broken_js_describe_0 : rootDescribeBlock +tests_early_broken_js_describe_0 --> tests_early_broken_js_hook_0 : children[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/27.x.x/env-worker-1/hook-afterAll-fail 1`] = ` "@startuml @@ -1177,6 +1196,25 @@ tests_duplicate_name_js_test_4_1_fn --> tests_duplicate_name_js_test_4_1 : test " `; +exports[`metadata - integration test: fixtures/27.x.x/env-worker-N/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +object "DescribeBlockMetadata" as tests_early_broken_js_describe_0 #ded +tests_early_broken_js_describe_0 : id = "describe_0" +object "HookDefinitionMetadata" as tests_early_broken_js_hook_0 #fdd +tests_early_broken_js_hook_0 : id = "hook_0" +tests_early_broken_js_hook_0 : hookType = "beforeEach" +aggregated_result --> tests_early_broken_js : testResults[0] +tests_early_broken_js --> tests_early_broken_js_describe_0 : rootDescribeBlock +tests_early_broken_js_describe_0 --> tests_early_broken_js_hook_0 : children[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/27.x.x/env-worker-N/hook-afterAll-fail 1`] = ` "@startuml @@ -1843,6 +1881,18 @@ tests_duplicate_name_js_test_5 --> tests_duplicate_name_js_test_5_0 : invocation " `; +exports[`metadata - integration test: fixtures/27.x.x/no-env-worker-1/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +aggregated_result --> tests_early_broken_js : testResults[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/27.x.x/no-env-worker-1/hook-afterAll-fail 1`] = ` "@startuml @@ -2179,6 +2229,18 @@ tests_duplicate_name_js_test_5 --> tests_duplicate_name_js_test_5_0 : invocation " `; +exports[`metadata - integration test: fixtures/27.x.x/no-env-worker-N/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +aggregated_result --> tests_early_broken_js : testResults[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/27.x.x/no-env-worker-N/hook-afterAll-fail 1`] = ` "@startuml @@ -2706,6 +2768,25 @@ tests_duplicate_name_js_test_4_1_fn --> tests_duplicate_name_js_test_4_1 : test " `; +exports[`metadata - integration test: fixtures/28.x.x/env-worker-1/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +object "DescribeBlockMetadata" as tests_early_broken_js_describe_0 #ded +tests_early_broken_js_describe_0 : id = "describe_0" +object "HookDefinitionMetadata" as tests_early_broken_js_hook_0 #fdd +tests_early_broken_js_hook_0 : id = "hook_0" +tests_early_broken_js_hook_0 : hookType = "beforeEach" +aggregated_result --> tests_early_broken_js : testResults[0] +tests_early_broken_js --> tests_early_broken_js_describe_0 : rootDescribeBlock +tests_early_broken_js_describe_0 --> tests_early_broken_js_hook_0 : children[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/28.x.x/env-worker-1/hook-afterAll-fail 1`] = ` "@startuml @@ -3543,6 +3624,25 @@ tests_duplicate_name_js_test_4_1_fn --> tests_duplicate_name_js_test_4_1 : test " `; +exports[`metadata - integration test: fixtures/28.x.x/env-worker-N/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +object "DescribeBlockMetadata" as tests_early_broken_js_describe_0 #ded +tests_early_broken_js_describe_0 : id = "describe_0" +object "HookDefinitionMetadata" as tests_early_broken_js_hook_0 #fdd +tests_early_broken_js_hook_0 : id = "hook_0" +tests_early_broken_js_hook_0 : hookType = "beforeEach" +aggregated_result --> tests_early_broken_js : testResults[0] +tests_early_broken_js --> tests_early_broken_js_describe_0 : rootDescribeBlock +tests_early_broken_js_describe_0 --> tests_early_broken_js_hook_0 : children[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/28.x.x/env-worker-N/hook-afterAll-fail 1`] = ` "@startuml @@ -4189,6 +4289,18 @@ tests_duplicate_name_js_test_5 --> tests_duplicate_name_js_test_5_0 : invocation " `; +exports[`metadata - integration test: fixtures/28.x.x/no-env-worker-1/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +aggregated_result --> tests_early_broken_js : testResults[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/28.x.x/no-env-worker-1/hook-afterAll-fail 1`] = ` "@startuml @@ -4525,6 +4637,18 @@ tests_duplicate_name_js_test_5 --> tests_duplicate_name_js_test_5_0 : invocation " `; +exports[`metadata - integration test: fixtures/28.x.x/no-env-worker-N/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +aggregated_result --> tests_early_broken_js : testResults[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/28.x.x/no-env-worker-N/hook-afterAll-fail 1`] = ` "@startuml @@ -5052,6 +5176,25 @@ tests_duplicate_name_js_test_4_1_fn --> tests_duplicate_name_js_test_4_1 : test " `; +exports[`metadata - integration test: fixtures/29.x.x/env-worker-1/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +object "DescribeBlockMetadata" as tests_early_broken_js_describe_0 #ded +tests_early_broken_js_describe_0 : id = "describe_0" +object "HookDefinitionMetadata" as tests_early_broken_js_hook_0 #fdd +tests_early_broken_js_hook_0 : id = "hook_0" +tests_early_broken_js_hook_0 : hookType = "beforeEach" +aggregated_result --> tests_early_broken_js : testResults[0] +tests_early_broken_js --> tests_early_broken_js_describe_0 : rootDescribeBlock +tests_early_broken_js_describe_0 --> tests_early_broken_js_hook_0 : children[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/29.x.x/env-worker-1/hook-afterAll-fail 1`] = ` "@startuml @@ -5889,6 +6032,25 @@ tests_duplicate_name_js_test_4_1_fn --> tests_duplicate_name_js_test_4_1 : test " `; +exports[`metadata - integration test: fixtures/29.x.x/env-worker-N/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +object "DescribeBlockMetadata" as tests_early_broken_js_describe_0 #ded +tests_early_broken_js_describe_0 : id = "describe_0" +object "HookDefinitionMetadata" as tests_early_broken_js_hook_0 #fdd +tests_early_broken_js_hook_0 : id = "hook_0" +tests_early_broken_js_hook_0 : hookType = "beforeEach" +aggregated_result --> tests_early_broken_js : testResults[0] +tests_early_broken_js --> tests_early_broken_js_describe_0 : rootDescribeBlock +tests_early_broken_js_describe_0 --> tests_early_broken_js_hook_0 : children[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/29.x.x/env-worker-N/hook-afterAll-fail 1`] = ` "@startuml @@ -6411,7 +6573,7 @@ exports[`metadata - integration test: fixtures/29.x.x/no-env-worker-1/aggregated object "AggregatedResultMetadata" as aggregated_result #dff aggregated_result : id = "aggregatedResult" -aggregated_result : data = {"vendor":{"runStartedAt":"2023-01-01T00:00:00.000Z"}} +aggregated_result : data = {"test":{"slept":500},"note":"afterAll","vendor":{"steps":[{"text":"Open the browser","startedAt":1672524000000},{"text":"Goto the URL: https://example.com","startedAt":1672524001000},{"text":"Enter invalid credentials","startedAt":1672524001100},{"text":"Assert that the login failed","startedAt":1672524001200},{"text":"Clear cookies","startedAt":1672524001200},{"text":"Goto the URL: https://example.com","startedAt":1672524001250},{"text":"Enter valid credentials","startedAt":1672524001350},{"text":"Assert that the login succeeded","startedAt":1672524001450},{"text":"Clear cookies","startedAt":1672524001450},{"text":"Close the browser","startedAt":1672524001500}]}} @enduml @@ -6535,6 +6697,18 @@ tests_duplicate_name_js_test_5 --> tests_duplicate_name_js_test_5_0 : invocation " `; +exports[`metadata - integration test: fixtures/29.x.x/no-env-worker-1/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +aggregated_result --> tests_early_broken_js : testResults[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/29.x.x/no-env-worker-1/hook-afterAll-fail 1`] = ` "@startuml @@ -6880,6 +7054,18 @@ tests_duplicate_name_js_test_5 --> tests_duplicate_name_js_test_5_0 : invocation " `; +exports[`metadata - integration test: fixtures/29.x.x/no-env-worker-N/early-broken 1`] = ` +"@startuml + +object "AggregatedResultMetadata" as aggregated_result #dff +aggregated_result : id = "aggregatedResult" +object "RunMetadata" as tests_early_broken_js #def +aggregated_result --> tests_early_broken_js : testResults[0] + +@enduml +" +`; + exports[`metadata - integration test: fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail 1`] = ` "@startuml diff --git a/packages/library/src/metadata/__tests__/__snapshots__/run-traversal.test.ts.snap b/packages/library/src/metadata/__tests__/__snapshots__/run-traversal.test.ts.snap index 793090f..8e65b73 100644 --- a/packages/library/src/metadata/__tests__/__snapshots__/run-traversal.test.ts.snap +++ b/packages/library/src/metadata/__tests__/__snapshots__/run-traversal.test.ts.snap @@ -138,6 +138,14 @@ exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/duplicate-name: in exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/duplicate-name: invocations test_5.0 1`] = `"hook_0.4 → test_5.0.fn"`; +exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/early-broken: allDescribeBlocks 1`] = `"describe_0"`; + +exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/early-broken: allInvocations 1`] = `""`; + +exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/early-broken: allTestEntries 1`] = `""`; + +exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/early-broken: allTestInvocations 1`] = `""`; + exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/hook-afterAll-fail: allAncestors test_0 1`] = `"describe_1 → describe_0 → __tests__/hook-afterAll-fail.js → aggregatedResult"`; exports[`run metadata traversal: fixtures/29.x.x/env-worker-N/hook-afterAll-fail: allAncestors test_0.0 1`] = `"test_0 → describe_1 → describe_0 → __tests__/hook-afterAll-fail.js → aggregatedResult"`; @@ -456,6 +464,14 @@ exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/duplicate-name: exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/duplicate-name: invocations test_5.0 1`] = `""`; +exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/early-broken: allDescribeBlocks 1`] = `""`; + +exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/early-broken: allInvocations 1`] = `""`; + +exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/early-broken: allTestEntries 1`] = `""`; + +exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/early-broken: allTestInvocations 1`] = `""`; + exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail: allAncestors test_0 1`] = `"describe_0 → __tests__/hook-afterAll-fail.js → aggregatedResult"`; exports[`run metadata traversal: fixtures/29.x.x/no-env-worker-N/hook-afterAll-fail: allAncestors test_0.0 1`] = `"test_0 → describe_0 → __tests__/hook-afterAll-fail.js → aggregatedResult"`; diff --git a/packages/recorder/__tests__/early-broken.js b/packages/recorder/__tests__/early-broken.js new file mode 100644 index 0000000..2083ed3 --- /dev/null +++ b/packages/recorder/__tests__/early-broken.js @@ -0,0 +1 @@ +)test('won\'t run', () => 'won\'t run'); diff --git a/packages/recorder/mockReporter.js b/packages/recorder/mockReporter.js index fb1dd3a..3cf5f19 100644 --- a/packages/recorder/mockReporter.js +++ b/packages/recorder/mockReporter.js @@ -42,6 +42,32 @@ class MockReporter extends JestMetadataReporter { state.set('vendor.runStartedAt', '2023-01-01T00:00:00.000Z'); } + onTestFileStart(test) { + this.#addReporterEvent('onTestFileStart', test); + super.onTestFileStart(...arguments); + } + + onTestCaseStart(test) { + this.#addReporterEvent('onTestCaseStart', test); + super.onTestCaseStart(...arguments); + } + + onTestCaseResult(test) { + this.#addReporterEvent('onTestCaseResult', test); + super.onTestCaseResult(...arguments); + } + + onTestFileResult(test) { + this.#addReporterEvent('onTestFileResult', test); + super.onTestFileResult(...arguments); + } + + #addReporterEvent(eventType, test) { + const id = path.basename(test.path, '.js') + '.json'; + this._events[id] = this._events[id] || []; + this._events[id].push({ type: `reporter:${eventType}` }); + } + async onRunComplete(testContexts, results) { await super.onRunComplete(testContexts, results);