Skip to content

Commit 3affc4e

Browse files
cpojerFacebook Github Bot 9
authored andcommitted
Rename pending to skipped, fix “Running XX tests” message.
Summary:`pending` is confusing to people at FB and I agree. Skipped makes more sense. This only updates the user output and continues to use `pending` in code – to align it with what Jasmine uses internally. I also removed a reference to a variable that doesn't exist which broke the `Running XX tests...` feature. Closes jestjs#820 Reviewed By: vjeux Differential Revision: D3079730 fb-gh-sync-id: f19e30f6f24095ff45563c5f0dfc957f8a08a2dc shipit-source-id: f19e30f6f24095ff45563c5f0dfc957f8a08a2dc
1 parent 791ec66 commit 3affc4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/reporters/DefaultTestReporter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class DefaultTestReporter {
131131

132132
if (pendingTests) {
133133
results +=
134-
`${PENDING_COLOR(`${print('test', pendingTests)} pending`)}, `;
134+
`${PENDING_COLOR(`${print('test', pendingTests)} skipped`)}, `;
135135
}
136136

137137
results +=
@@ -150,7 +150,6 @@ class DefaultTestReporter {
150150
const remaining = results.numTotalTestSuites -
151151
results.numPassedTestSuites -
152152
results.numFailedTestSuites -
153-
results.numPendingTestSuites -
154153
results.numRuntimeErrorTestSuites;
155154
if (!this._config.noHighlight && remaining > 0) {
156155
this._process.stdout.write(RUNNING_TEST_COLOR(

0 commit comments

Comments
 (0)