Skip to content

Commit e06a83b

Browse files
authored
Merge branch 'master' into fix/test-match
2 parents 13c3a4a + e44325d commit e06a83b

6 files changed

Lines changed: 15 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- `[jest-runner]` Force parallel runs for watch mode, to avoid TTY freeze ([#6647](https://github.com/facebook/jest/pull/6647))
66
- `[jest-cli]` properly reprint resolver errors in watch mode ([#6407](https://github.com/facebook/jest/pull/6407))
7+
- `[jest-cli]` Write configuration to stdout when the option was explicitly passed to Jest ([#6447](https://github.com/facebook/jest/pull/6447))
78
- `[jest-cli]` Fix `testMatch` not working with negations ([#6648](https://github.com/facebook/jest/pull/6648))
89

910
## 23.3.0

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"istanbul-lib-coverage": "^1.0.0",
4545
"jasmine-reporters": "^2.2.0",
4646
"jest-junit": "^5.1.0",
47-
"jest-silent-reporter": "^0.0.5",
47+
"jest-simple-dot-reporter": "^1.0.2",
4848
"jquery": "^3.2.1",
4949
"karma": "^2.0.0",
5050
"karma-browserify": "^5.1.1",
@@ -90,8 +90,8 @@
9090
"postinstall": "opencollective postinstall && yarn build",
9191
"publish": "yarn build-clean && yarn build && lerna publish --silent",
9292
"test-ci-es5-build-in-browser": "karma start --single-run",
93-
"test-ci": "yarn jest-coverage -i --reporters jest-silent-reporter jest-junit && yarn test-leak && node scripts/mapCoverage.js && codecov",
94-
"test-ci-partial": "yarn jest -i --reporters jest-silent-reporter jest-junit",
93+
"test-ci": "yarn jest-coverage -i --reporters jest-simple-dot-reporter jest-junit && yarn test-leak && node scripts/mapCoverage.js && codecov",
94+
"test-ci-partial": "yarn jest -i --reporters jest-simple-dot-reporter jest-junit",
9595
"test-pretty-format-perf": "node packages/pretty-format/perf/test.js",
9696
"test-leak": "yarn jest -i --detectLeaks jest-mock jest-diff jest-repl",
9797
"test": "yarn typecheck && yarn lint && yarn jest",

packages/jest-cli/src/cli/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,13 @@ const printDebugInfoAndExitIfNeeded = (
205205
configs,
206206
outputStream,
207207
) => {
208-
if (argv.debug || argv.showConfig) {
208+
if (argv.debug) {
209209
logDebugMessages(globalConfig, configs, outputStream);
210+
return;
210211
}
212+
211213
if (argv.showConfig) {
214+
logDebugMessages(globalConfig, configs, process.stdout);
212215
exit(0);
213216
}
214217
};

packages/jest-runtime/src/__tests__/script_transformer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ describe('ScriptTransformer', () => {
394394
const content =
395395
'var x = 1;\n' +
396396
'//# sourceMappingURL=data:application/json;base64,' +
397-
new Buffer(sourceMap).toString('base64');
397+
Buffer.from(sourceMap).toString('base64');
398398

399399
require('preprocessor-with-sourcemaps').process.mockReturnValue(content);
400400

packages/jest-snapshot/src/State.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export default class SnapshotState {
9393
const lines = getStackTraceLines(error.stack);
9494
const frame = getTopFrame(lines);
9595
if (!frame) {
96-
throw new Error("Jest: Couln't infer stack frame for inline snapshot.");
96+
throw new Error(
97+
"Jest: Couldn't infer stack frame for inline snapshot.",
98+
);
9799
}
98100
this._inlineSnapshots.push({
99101
frame,

yarn.lock

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,14 +2040,6 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0:
20402040
escape-string-regexp "^1.0.5"
20412041
supports-color "^5.3.0"
20422042

2043-
chalk@^2.3.1:
2044-
version "2.3.2"
2045-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65"
2046-
dependencies:
2047-
ansi-styles "^3.2.1"
2048-
escape-string-regexp "^1.0.5"
2049-
supports-color "^5.3.0"
2050-
20512043
character-entities-legacy@^1.0.0:
20522044
version "1.1.1"
20532045
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.1.tgz#f40779df1a101872bb510a3d295e1fccf147202f"
@@ -6171,12 +6163,9 @@ jest-resolve@^22.4.2:
61716163
browser-resolve "^1.11.2"
61726164
chalk "^2.0.1"
61736165

6174-
jest-silent-reporter@^0.0.5:
6175-
version "0.0.5"
6176-
resolved "https://registry.yarnpkg.com/jest-silent-reporter/-/jest-silent-reporter-0.0.5.tgz#14139b7a991b7bcca880dd8a69c33a91723a8f1f"
6177-
dependencies:
6178-
chalk "^2.3.1"
6179-
jest-util "^23.0.0"
6166+
jest-simple-dot-reporter@^1.0.2:
6167+
version "1.0.2"
6168+
resolved "https://registry.yarnpkg.com/jest-simple-dot-reporter/-/jest-simple-dot-reporter-1.0.2.tgz#3af57740a1a4e63358d1718c9dad2aefe6196bbc"
61806169

61816170
jest-snapshot@^22.4.0:
61826171
version "22.4.3"

0 commit comments

Comments
 (0)