-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from SamTheisens/report-no-results-as-error
Report no results as error
- Loading branch information
Showing
9 changed files
with
348 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"numFailedTestSuites": 1, | ||
"numFailedTests": 0, | ||
"numPassedTestSuites": 0, | ||
"numPassedTests": 0, | ||
"numPendingTestSuites": 0, | ||
"numPendingTests": 0, | ||
"numRuntimeErrorTestSuites": 1, | ||
"numTodoTests": 0, | ||
"numTotalTestSuites": 1, | ||
"numTotalTests": 0, | ||
"openHandles": [], | ||
"snapshot": { | ||
"added": 0, | ||
"didUpdate": false, | ||
"failure": false, | ||
"filesAdded": 0, | ||
"filesRemoved": 0, | ||
"filesRemovedList": [], | ||
"filesUnmatched": 0, | ||
"filesUpdated": 0, | ||
"matched": 0, | ||
"total": 0, | ||
"unchecked": 0, | ||
"uncheckedKeysByFile": [], | ||
"unmatched": 0, | ||
"updated": 0 | ||
}, | ||
"startTime": 1601808216222, | ||
"success": false, | ||
"testResults": [ | ||
{ | ||
"failureMessage": " \u001b[1m● \u001b[22mTest suite failed to run\n\n Your test suite must contain at least one test.\n\n \u001b[2mat onResult (\u001b[22mnode_modules/@jest/core/build/TestScheduler.js\u001b[2m:175:18)\u001b[22m\n \u001b[2mat testRunner.on (\u001b[22mnode_modules/@jest/core/build/TestScheduler.js\u001b[2m:304:17)\u001b[22m\n \u001b[2mat Promise.all.staticListeners.map (\u001b[22mnode_modules/emittery/index.js\u001b[2m:260:13)\u001b[22m\n at Array.map (<anonymous>)\n \u001b[2mat Emittery.Typed.emit (\u001b[22mnode_modules/emittery/index.js\u001b[2m:258:23)\u001b[22m\n", | ||
"leaks": false, | ||
"numFailingTests": 0, | ||
"numPassingTests": 0, | ||
"numPendingTests": 0, | ||
"numTodoTests": 0, | ||
"openHandles": [], | ||
"perfStats": { | ||
"end": 0, | ||
"runtime": 0, | ||
"slow": false, | ||
"start": 0 | ||
}, | ||
"skipped": false, | ||
"snapshot": { | ||
"added": 0, | ||
"fileDeleted": false, | ||
"matched": 0, | ||
"unchecked": 0, | ||
"uncheckedKeys": [], | ||
"unmatched": 0, | ||
"updated": 0 | ||
}, | ||
"testExecError": { | ||
"message": "Your test suite must contain at least one test.", | ||
"stack": "Error: Your test suite must contain at least one test.\n at onResult ../mpl-modules/test/docker/node_modules/@jest/core/build/TestScheduler.js:175:18)\n at testRunner.on ../mpl-modules/test/docker/node_modules/@jest/core/build/TestScheduler.js:304:17)\n at Promise.all.staticListeners.map ../mpl-modules/test/docker/node_modules/emittery/index.js:260:13)\n at Array.map (<anonymous>)\n at Emittery.Typed.emit ../mpl-modules/test/docker/node_modules/emittery/index.js:258:23)" | ||
}, | ||
"testFilePath": "/path/to/spec/test.spec.ts", | ||
"testResults": [] | ||
} | ||
], | ||
"wasInterrupted": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"numFailedTestSuites": 1, | ||
"numFailedTests": 0, | ||
"numPassedTestSuites": 0, | ||
"numPassedTests": 0, | ||
"numPendingTestSuites": 0, | ||
"numPendingTests": 0, | ||
"numRuntimeErrorTestSuites": 1, | ||
"numTodoTests": 0, | ||
"numTotalTestSuites": 1, | ||
"numTotalTests": 0, | ||
"openHandles": [], | ||
"snapshot": { | ||
"added": 0, | ||
"didUpdate": false, | ||
"failure": false, | ||
"filesAdded": 0, | ||
"filesRemoved": 0, | ||
"filesRemovedList": [], | ||
"filesUnmatched": 0, | ||
"filesUpdated": 0, | ||
"matched": 0, | ||
"total": 0, | ||
"unchecked": 0, | ||
"uncheckedKeysByFile": [], | ||
"unmatched": 0, | ||
"updated": 0 | ||
}, | ||
"startTime": 1489712747092, | ||
"success": false, | ||
"testResults": [ | ||
{ | ||
"displayName": "", | ||
"failureMessage": " \u001b[1m● \u001b[22mTest suite failed to run\n\n TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):\n \u001b[96mspec/test.spec.ts\u001b[0m:\u001b[93m10\u001b[0m:\u001b[93m35\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2339: \u001b[0mProperty 'hello' does not exist on type 'HelloScreamer'.\n\n \u001b[7m10\u001b[0m const screamed = screamer.hello();\n \u001b[7m \u001b[0m \u001b[91m ~~~~~\u001b[0m\n", | ||
"leaks": false, | ||
"numFailingTests": 0, | ||
"numPassingTests": 0, | ||
"numPendingTests": 0, | ||
"numTodoTests": 0, | ||
"openHandles": [], | ||
"perfStats": { | ||
"end": 1499904221109, | ||
"start": 1499904215586 | ||
}, | ||
"skipped": false, | ||
"snapshot": { | ||
"added": 0, | ||
"fileDeleted": false, | ||
"matched": 0, | ||
"unchecked": 0, | ||
"unmatched": 0, | ||
"updated": 0 | ||
}, | ||
"sourceMaps": {}, | ||
"testExecError": "spec/test.spec.ts:10:35 - error TS2339: Property 'hello' does not exist on type 'HelloScreamer\n\n 10 const screamed = screamer.hello();\n~~~~~", | ||
"testFilePath": "/path/to/spec/test.spec.ts", | ||
"testResults": [], | ||
"coverage": { | ||
} | ||
}, | ||
{ | ||
"console": [], | ||
"failureMessage": null, | ||
"numFailingTests": 0, | ||
"numPassingTests": 1, | ||
"numPendingTests": 0, | ||
"perfStats": { | ||
"end": 1518274351347, | ||
"start": 1518274351274 | ||
}, | ||
"snapshot": { | ||
"added": 0, | ||
"fileDeleted": false, | ||
"matched": 0, | ||
"unchecked": 0, | ||
"unmatched": 0, | ||
"updated": 0, | ||
"uncheckedKeys": [] | ||
}, | ||
"testFilePath": "/path/to/project2/__tests__/test2.test.js", | ||
"testResults": [ | ||
{ | ||
"ancestorTitles": [ | ||
"another thing" | ||
], | ||
"duration": 1, | ||
"failureMessages": [], | ||
"fullName": "another thing should foo", | ||
"location": null, | ||
"numPassingAsserts": 0, | ||
"status": "passed", | ||
"title": "should foo" | ||
} | ||
], | ||
"sourceMaps": {}, | ||
"skipped": false, | ||
"displayName": "project2", | ||
"leaks": false | ||
} | ||
], | ||
"wasInterrupted": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"numFailedTestSuites": 1, | ||
"numFailedTests": 0, | ||
"numPassedTestSuites": 1, | ||
"numPassedTests": 1, | ||
"numPendingTestSuites": 0, | ||
"numPendingTests": 0, | ||
"numRuntimeErrorTestSuites": 1, | ||
"numTodoTests": 0, | ||
"numTotalTestSuites": 2, | ||
"numTotalTests": 1, | ||
"openHandles": [], | ||
"snapshot": { | ||
"added": 0, | ||
"didUpdate": false, | ||
"failure": false, | ||
"filesAdded": 0, | ||
"filesRemoved": 0, | ||
"filesRemovedList": [], | ||
"filesUnmatched": 0, | ||
"filesUpdated": 0, | ||
"matched": 0, | ||
"total": 0, | ||
"unchecked": 0, | ||
"uncheckedKeysByFile": [], | ||
"unmatched": 0, | ||
"updated": 0 | ||
}, | ||
"startTime": 1601544556519, | ||
"success": false, | ||
"testResults": [ | ||
{ | ||
"displayName": "", | ||
"failureMessage": " \u001b[1m● \u001b[22mTest suite failed to run\n\n Cannot find module './mult' from 'mul.test.js'\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 | \u001b[39m\u001b[36mconst\u001b[39m mul \u001b[33m=\u001b[39m require(\u001b[32m'./mult'\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 2 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 3 | \u001b[39mtest(\u001b[32m'multplies 2 * 3 to equal 6'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m \u001b[90m 4 | \u001b[39m expect(mul(\u001b[35m2\u001b[39m\u001b[33m,\u001b[39m \u001b[35m3\u001b[39m))\u001b[33m.\u001b[39mtoBe(\u001b[35m6\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\n\n \u001b[2mat Resolver.resolveModule (\u001b[22mnode_modules/jest-resolve/build/index.js\u001b[2m:259:17)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22m\u001b[0m\u001b[36msrc/mul.test.js\u001b[39m\u001b[0m\u001b[2m:1:1)\u001b[22m\n", | ||
"leaks": false, | ||
"numFailingTests": 0, | ||
"numPassingTests": 0, | ||
"numPendingTests": 0, | ||
"numTodoTests": 0, | ||
"openHandles": [], | ||
"perfStats": { | ||
"end": 0, | ||
"start": 0 | ||
}, | ||
"skipped": false, | ||
"snapshot": { | ||
"added": 0, | ||
"fileDeleted": false, | ||
"matched": 0, | ||
"unchecked": 0, | ||
"uncheckedKeys": [], | ||
"unmatched": 0, | ||
"updated": 0 | ||
}, | ||
"testExecError": { | ||
"code": "MODULE_NOT_FOUND" | ||
}, | ||
"testFilePath": "/path/to/spec/test.spec.ts", | ||
"testResults": [] | ||
} | ||
], | ||
"wasInterrupted": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.