-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct message when no tests found and
findRelatedTests
passed (
- Loading branch information
Showing
9 changed files
with
171 additions
and
45 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
22 changes: 0 additions & 22 deletions
22
packages/jest-core/src/__tests__/__snapshots__/getNoTestsFoundMessage.test.js.snap
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
packages/jest-core/src/__tests__/__snapshots__/getNoTestsFoundMessage.test.ts.snap
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 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`getNoTestsFoundMessage returns correct message when monitoring only changed 1`] = ` | ||
Object { | ||
"exitWith0": true, | ||
"message": "<bold>No tests found related to files changed since last commit.</><dim></> | ||
<dim>Run Jest without \`-o\` or with \`--all\` to run all tests.</>", | ||
} | ||
`; | ||
exports[`getNoTestsFoundMessage returns correct message when monitoring only failures 1`] = ` | ||
Object { | ||
"exitWith0": false, | ||
"message": "<bold>No failed test found.</><dim></> | ||
<dim>Run Jest without \`--onlyFailures\` or with \`--all\` to run all tests.</>", | ||
} | ||
`; | ||
exports[`getNoTestsFoundMessage returns correct message with findRelatedTests 1`] = ` | ||
Object { | ||
"exitWith0": false, | ||
"message": "<bold>No tests found, exiting with code 1</> | ||
Run with \`--passWithNoTests\` to exit with code 0 | ||
In <bold>/root/dir</> | ||
0 files checked across 0 projects. Run with \`--verbose\` for more details. | ||
Pattern: <yellow>/path/pattern</> - 0 matches", | ||
} | ||
`; | ||
exports[`getNoTestsFoundMessage returns correct message with findRelatedTests 2`] = ` | ||
Object { | ||
"exitWith0": true, | ||
"message": "<bold>No tests found, exiting with code 0</>", | ||
} | ||
`; | ||
exports[`getNoTestsFoundMessage returns correct message with passWithNoTests 1`] = ` | ||
Object { | ||
"exitWith0": true, | ||
"message": "<bold>No tests found, exiting with code 0</>", | ||
} | ||
`; | ||
exports[`getNoTestsFoundMessage returns correct message with verbose option 1`] = ` | ||
Object { | ||
"exitWith0": false, | ||
"message": "<bold>No tests found, exiting with code 1</> | ||
Run with \`--passWithNoTests\` to exit with code 0 | ||
Pattern: <yellow>/path/pattern</> - 0 matches", | ||
} | ||
`; | ||
exports[`getNoTestsFoundMessage returns correct message without options 1`] = ` | ||
Object { | ||
"exitWith0": false, | ||
"message": "<bold>No tests found, exiting with code 1</> | ||
Run with \`--passWithNoTests\` to exit with code 0 | ||
In <bold>/root/dir</> | ||
0 files checked across 0 projects. Run with \`--verbose\` for more details. | ||
Pattern: <yellow>/path/pattern</> - 0 matches", | ||
} | ||
`; |
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
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