Skip to content

Commit

Permalink
Merge branch 'master' into fix/test-match
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored Jul 8, 2018
2 parents 13c3a4a + e44325d commit e06a83b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

## 23.3.0
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"istanbul-lib-coverage": "^1.0.0",
"jasmine-reporters": "^2.2.0",
"jest-junit": "^5.1.0",
"jest-silent-reporter": "^0.0.5",
"jest-simple-dot-reporter": "^1.0.2",
"jquery": "^3.2.1",
"karma": "^2.0.0",
"karma-browserify": "^5.1.1",
Expand Down Expand Up @@ -90,8 +90,8 @@
"postinstall": "opencollective postinstall && yarn build",
"publish": "yarn build-clean && yarn build && lerna publish --silent",
"test-ci-es5-build-in-browser": "karma start --single-run",
"test-ci": "yarn jest-coverage -i --reporters jest-silent-reporter jest-junit && yarn test-leak && node scripts/mapCoverage.js && codecov",
"test-ci-partial": "yarn jest -i --reporters jest-silent-reporter jest-junit",
"test-ci": "yarn jest-coverage -i --reporters jest-simple-dot-reporter jest-junit && yarn test-leak && node scripts/mapCoverage.js && codecov",
"test-ci-partial": "yarn jest -i --reporters jest-simple-dot-reporter jest-junit",
"test-pretty-format-perf": "node packages/pretty-format/perf/test.js",
"test-leak": "yarn jest -i --detectLeaks jest-mock jest-diff jest-repl",
"test": "yarn typecheck && yarn lint && yarn jest",
Expand Down
5 changes: 4 additions & 1 deletion packages/jest-cli/src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,13 @@ const printDebugInfoAndExitIfNeeded = (
configs,
outputStream,
) => {
if (argv.debug || argv.showConfig) {
if (argv.debug) {
logDebugMessages(globalConfig, configs, outputStream);
return;
}

if (argv.showConfig) {
logDebugMessages(globalConfig, configs, process.stdout);
exit(0);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ describe('ScriptTransformer', () => {
const content =
'var x = 1;\n' +
'//# sourceMappingURL=data:application/json;base64,' +
new Buffer(sourceMap).toString('base64');
Buffer.from(sourceMap).toString('base64');

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

Expand Down
4 changes: 3 additions & 1 deletion packages/jest-snapshot/src/State.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export default class SnapshotState {
const lines = getStackTraceLines(error.stack);
const frame = getTopFrame(lines);
if (!frame) {
throw new Error("Jest: Couln't infer stack frame for inline snapshot.");
throw new Error(
"Jest: Couldn't infer stack frame for inline snapshot.",
);
}
this._inlineSnapshots.push({
frame,
Expand Down
17 changes: 3 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2040,14 +2040,6 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0:
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"

chalk@^2.3.1:
version "2.3.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65"
dependencies:
ansi-styles "^3.2.1"
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"

character-entities-legacy@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.1.tgz#f40779df1a101872bb510a3d295e1fccf147202f"
Expand Down Expand Up @@ -6171,12 +6163,9 @@ jest-resolve@^22.4.2:
browser-resolve "^1.11.2"
chalk "^2.0.1"

jest-silent-reporter@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/jest-silent-reporter/-/jest-silent-reporter-0.0.5.tgz#14139b7a991b7bcca880dd8a69c33a91723a8f1f"
dependencies:
chalk "^2.3.1"
jest-util "^23.0.0"
jest-simple-dot-reporter@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/jest-simple-dot-reporter/-/jest-simple-dot-reporter-1.0.2.tgz#3af57740a1a4e63358d1718c9dad2aefe6196bbc"

jest-snapshot@^22.4.0:
version "22.4.3"
Expand Down

0 comments on commit e06a83b

Please sign in to comment.