From 5a0e66196c232a8f5b1bf7097243e90e3d60950e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= <thymikee@gmail.com>
Date: Sat, 7 Jul 2018 22:55:38 +0200
Subject: [PATCH] Use dot-reporter instead of silent-reporter on CI (#6653)

* Make travis wait 20mins instead of 10 for no output

* use jest-dot-reporter instead of jest-silent-reporter (sorry Rick)

* update package.json

* use simple-dot-reporter
---
 package.json                                    |  6 +++---
 .../src/__tests__/script_transformer.test.js    |  2 +-
 yarn.lock                                       | 17 +++--------------
 3 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/package.json b/package.json
index 4fc03a421978..719fa9c832f9 100644
--- a/package.json
+++ b/package.json
@@ -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",
@@ -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",
diff --git a/packages/jest-runtime/src/__tests__/script_transformer.test.js b/packages/jest-runtime/src/__tests__/script_transformer.test.js
index a9227914c534..cd867cf1deba 100644
--- a/packages/jest-runtime/src/__tests__/script_transformer.test.js
+++ b/packages/jest-runtime/src/__tests__/script_transformer.test.js
@@ -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);
 
diff --git a/yarn.lock b/yarn.lock
index ed9723381c48..632c10d86428 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -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"
@@ -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"