From 15535cf52c2140c7bf27165ec88e2cfdad68d5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Sun, 11 Aug 2019 18:55:28 -0400 Subject: [PATCH] Update preset-env text fixtures (#10318) * chore: update preset-env text fixtures * chore: remove FORCE_COLOR workaround --- Makefile | 3 --- .../debug-fixtures/entry-corejs3-all-chrome-71/stdout.txt | 2 +- .../test/debug-fixtures/entry-corejs3-all/stdout.txt | 2 +- .../entry-corejs3-es-proposals-chrome-71/stdout.txt | 2 +- .../test/debug-fixtures/entry-corejs3-es-proposals/stdout.txt | 2 +- .../entry-corejs3-proposals-chrome-71/stdout.txt | 2 +- .../test/debug-fixtures/entry-corejs3-proposals/stdout.txt | 2 +- .../debug-fixtures/entry-corejs3-stage-chrome-71/stdout.txt | 2 +- .../test/debug-fixtures/entry-corejs3-stage/stdout.txt | 2 +- .../test/fixtures/corejs3/entry-all-chrome-71/output.mjs | 2 +- .../test/fixtures/corejs3/entry-all/output.mjs | 2 +- .../entry-entries-es-proposals-stage-chrome-71/output.mjs | 2 +- .../corejs3/entry-entries-es-proposals-stage/output.mjs | 2 +- .../corejs3/entry-entries-proposals-chrome-71/output.mjs | 2 +- .../test/fixtures/corejs3/entry-entries-proposals/output.mjs | 2 +- .../fixtures/corejs3/entry-entries-stage-chrome-71/output.mjs | 2 +- .../test/fixtures/corejs3/entry-entries-stage/output.mjs | 2 +- .../test/fixtures/corejs3/entry-require-all/output.js | 4 ++-- .../fixtures/corejs3/entry-require-es-proposals/output.js | 4 ++-- 19 files changed, 20 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index 5fa5cb0cfd..5eca02889a 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,6 @@ MAKEFLAGS = -j1 FLOW_COMMIT = 09669846b7a7ca5a6c23c12d56bb3bebdafd67e9 TEST262_COMMIT = de567d3aa5de4eaa11e00131d26b9fe77997dfb0 -# Fix color output until TravisCI fixes https://github.com/travis-ci/travis-ci/issues/7967 -export FORCE_COLOR = true - SOURCES = packages codemods .PHONY: build build-dist watch lint fix clean test-clean test-only test test-ci publish bootstrap diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all-chrome-71/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all-chrome-71/stdout.txt index 9bd35deedc..bbefff8cb2 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all-chrome-71/stdout.txt @@ -88,6 +88,7 @@ Using polyfills with `entry` option: esnext.set.union { "chrome":"71" } esnext.string.at { "chrome":"71" } esnext.string.code-points { "chrome":"71" } + esnext.string.match-all { "chrome":"71" } esnext.string.replace-all { "chrome":"71" } esnext.symbol.dispose { "chrome":"71" } esnext.symbol.observable { "chrome":"71" } @@ -100,7 +101,6 @@ Using polyfills with `entry` option: esnext.weak-set.from { "chrome":"71" } esnext.weak-set.of { "chrome":"71" } web.immediate { "chrome":"71" } - esnext.string.match-all { "chrome":"71" } [/src/in.js] Based on your targets, regenerator-runtime import excluded. Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all/stdout.txt index cf2f612260..9c9fa02627 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-all/stdout.txt @@ -312,6 +312,7 @@ Using polyfills with `entry` option: esnext.set.union {} esnext.string.at {} esnext.string.code-points {} + esnext.string.match-all {} esnext.string.replace-all {} esnext.symbol.dispose {} esnext.symbol.observable {} @@ -331,5 +332,4 @@ Using polyfills with `entry` option: web.url {} web.url.to-json {} web.url-search-params {} - esnext.string.match-all {} Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals-chrome-71/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals-chrome-71/stdout.txt index 6d0687966b..5cf2958c3b 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals-chrome-71/stdout.txt @@ -88,6 +88,7 @@ Using polyfills with `entry` option: esnext.set.union { "chrome":"71" } esnext.string.at { "chrome":"71" } esnext.string.code-points { "chrome":"71" } + esnext.string.match-all { "chrome":"71" } esnext.string.replace-all { "chrome":"71" } esnext.symbol.dispose { "chrome":"71" } esnext.symbol.observable { "chrome":"71" } @@ -99,7 +100,6 @@ Using polyfills with `entry` option: esnext.weak-set.delete-all { "chrome":"71" } esnext.weak-set.from { "chrome":"71" } esnext.weak-set.of { "chrome":"71" } - esnext.string.match-all { "chrome":"71" } [/src/in.js] Based on your targets, regenerator-runtime import excluded. Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals/stdout.txt index 954fd41336..bc007cc332 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-es-proposals/stdout.txt @@ -312,6 +312,7 @@ Using polyfills with `entry` option: esnext.set.union {} esnext.string.at {} esnext.string.code-points {} + esnext.string.match-all {} esnext.string.replace-all {} esnext.symbol.dispose {} esnext.symbol.observable {} @@ -326,5 +327,4 @@ Using polyfills with `entry` option: web.url {} web.url.to-json {} web.url-search-params {} - esnext.string.match-all {} Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals-chrome-71/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals-chrome-71/stdout.txt index 7b8630d1d4..415f49d210 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals-chrome-71/stdout.txt @@ -85,6 +85,7 @@ Using polyfills with `entry` option: esnext.set.union { "chrome":"71" } esnext.string.at { "chrome":"71" } esnext.string.code-points { "chrome":"71" } + esnext.string.match-all { "chrome":"71" } esnext.string.replace-all { "chrome":"71" } esnext.symbol.dispose { "chrome":"71" } esnext.symbol.observable { "chrome":"71" } @@ -96,7 +97,6 @@ Using polyfills with `entry` option: esnext.weak-set.delete-all { "chrome":"71" } esnext.weak-set.from { "chrome":"71" } esnext.weak-set.of { "chrome":"71" } - esnext.string.match-all { "chrome":"71" } [/src/in.js] Based on your targets, regenerator-runtime import excluded. Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals/stdout.txt index 34bf4094e2..e0cdc20179 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-proposals/stdout.txt @@ -112,6 +112,7 @@ Using polyfills with `entry` option: esnext.set.union {} esnext.string.at {} esnext.string.code-points {} + esnext.string.match-all {} esnext.string.replace-all {} esnext.symbol.dispose {} esnext.symbol.observable {} @@ -126,5 +127,4 @@ Using polyfills with `entry` option: web.url {} web.url.to-json {} web.url-search-params {} - esnext.string.match-all {} Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage-chrome-71/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage-chrome-71/stdout.txt index 7b8630d1d4..415f49d210 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage-chrome-71/stdout.txt @@ -85,6 +85,7 @@ Using polyfills with `entry` option: esnext.set.union { "chrome":"71" } esnext.string.at { "chrome":"71" } esnext.string.code-points { "chrome":"71" } + esnext.string.match-all { "chrome":"71" } esnext.string.replace-all { "chrome":"71" } esnext.symbol.dispose { "chrome":"71" } esnext.symbol.observable { "chrome":"71" } @@ -96,7 +97,6 @@ Using polyfills with `entry` option: esnext.weak-set.delete-all { "chrome":"71" } esnext.weak-set.from { "chrome":"71" } esnext.weak-set.of { "chrome":"71" } - esnext.string.match-all { "chrome":"71" } [/src/in.js] Based on your targets, regenerator-runtime import excluded. Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage/stdout.txt b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage/stdout.txt index 34bf4094e2..e0cdc20179 100644 --- a/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage/stdout.txt +++ b/packages/babel-preset-env/test/debug-fixtures/entry-corejs3-stage/stdout.txt @@ -112,6 +112,7 @@ Using polyfills with `entry` option: esnext.set.union {} esnext.string.at {} esnext.string.code-points {} + esnext.string.match-all {} esnext.string.replace-all {} esnext.symbol.dispose {} esnext.symbol.observable {} @@ -126,5 +127,4 @@ Using polyfills with `entry` option: web.url {} web.url.to-json {} web.url-search-params {} - esnext.string.match-all {} Successfully compiled 1 file with Babel. \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-all-chrome-71/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-all-chrome-71/output.mjs index b0bfda361f..5e6fe80b6a 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-all-chrome-71/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-all-chrome-71/output.mjs @@ -70,6 +70,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -82,4 +83,3 @@ import "core-js/modules/esnext.weak-set.delete-all"; import "core-js/modules/esnext.weak-set.from"; import "core-js/modules/esnext.weak-set.of"; import "core-js/modules/web.immediate"; -import "core-js/modules/esnext.string.match-all"; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-all/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-all/output.mjs index d1fd616304..de6d3f35f1 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-all/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-all/output.mjs @@ -268,6 +268,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -287,5 +288,4 @@ import "core-js/modules/web.timers"; import "core-js/modules/web.url"; import "core-js/modules/web.url.to-json"; import "core-js/modules/web.url-search-params"; -import "core-js/modules/esnext.string.match-all"; import 'regenerator-runtime/runtime'; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage-chrome-71/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage-chrome-71/output.mjs index a6c680fa98..31397143f8 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage-chrome-71/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage-chrome-71/output.mjs @@ -70,6 +70,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -81,4 +82,3 @@ import "core-js/modules/esnext.weak-set.add-all"; import "core-js/modules/esnext.weak-set.delete-all"; import "core-js/modules/esnext.weak-set.from"; import "core-js/modules/esnext.weak-set.of"; -import "core-js/modules/esnext.string.match-all"; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage/output.mjs index c90f59ea14..51a04c11f0 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-es-proposals-stage/output.mjs @@ -268,6 +268,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -282,5 +283,4 @@ import "core-js/modules/esnext.weak-set.of"; import "core-js/modules/web.url"; import "core-js/modules/web.url.to-json"; import "core-js/modules/web.url-search-params"; -import "core-js/modules/esnext.string.match-all"; import 'regenerator-runtime/runtime'; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals-chrome-71/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals-chrome-71/output.mjs index 56b2198265..c010a7b5fc 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals-chrome-71/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals-chrome-71/output.mjs @@ -67,6 +67,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -78,4 +79,3 @@ import "core-js/modules/esnext.weak-set.add-all"; import "core-js/modules/esnext.weak-set.delete-all"; import "core-js/modules/esnext.weak-set.from"; import "core-js/modules/esnext.weak-set.of"; -import "core-js/modules/esnext.string.match-all"; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals/output.mjs index 65c37496e0..d59c98b717 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-proposals/output.mjs @@ -68,6 +68,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -82,5 +83,4 @@ import "core-js/modules/esnext.weak-set.of"; import "core-js/modules/web.url"; import "core-js/modules/web.url.to-json"; import "core-js/modules/web.url-search-params"; -import "core-js/modules/esnext.string.match-all"; import 'regenerator-runtime/runtime'; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage-chrome-71/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage-chrome-71/output.mjs index 56b2198265..c010a7b5fc 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage-chrome-71/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage-chrome-71/output.mjs @@ -67,6 +67,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -78,4 +79,3 @@ import "core-js/modules/esnext.weak-set.add-all"; import "core-js/modules/esnext.weak-set.delete-all"; import "core-js/modules/esnext.weak-set.from"; import "core-js/modules/esnext.weak-set.of"; -import "core-js/modules/esnext.string.match-all"; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage/output.mjs index 65c37496e0..d59c98b717 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-entries-stage/output.mjs @@ -68,6 +68,7 @@ import "core-js/modules/esnext.set.symmetric-difference"; import "core-js/modules/esnext.set.union"; import "core-js/modules/esnext.string.at"; import "core-js/modules/esnext.string.code-points"; +import "core-js/modules/esnext.string.match-all"; import "core-js/modules/esnext.string.replace-all"; import "core-js/modules/esnext.symbol.dispose"; import "core-js/modules/esnext.symbol.observable"; @@ -82,5 +83,4 @@ import "core-js/modules/esnext.weak-set.of"; import "core-js/modules/web.url"; import "core-js/modules/web.url.to-json"; import "core-js/modules/web.url-search-params"; -import "core-js/modules/esnext.string.match-all"; import 'regenerator-runtime/runtime'; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-require-all/output.js b/packages/babel-preset-env/test/fixtures/corejs3/entry-require-all/output.js index ac1379a635..7a80df8b9b 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-require-all/output.js +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-require-all/output.js @@ -180,6 +180,8 @@ require("core-js/modules/esnext.string.at"); require("core-js/modules/esnext.string.code-points"); +require("core-js/modules/esnext.string.match-all"); + require("core-js/modules/esnext.string.replace-all"); require("core-js/modules/esnext.symbol.dispose"); @@ -216,6 +218,4 @@ require("core-js/modules/web.url.to-json"); require("core-js/modules/web.url-search-params"); -require("core-js/modules/esnext.string.match-all"); - 1 ** 2; diff --git a/packages/babel-preset-env/test/fixtures/corejs3/entry-require-es-proposals/output.js b/packages/babel-preset-env/test/fixtures/corejs3/entry-require-es-proposals/output.js index 31ec22fc83..2507fd832b 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/entry-require-es-proposals/output.js +++ b/packages/babel-preset-env/test/fixtures/corejs3/entry-require-es-proposals/output.js @@ -180,6 +180,8 @@ require("core-js/modules/esnext.string.at"); require("core-js/modules/esnext.string.code-points"); +require("core-js/modules/esnext.string.match-all"); + require("core-js/modules/esnext.string.replace-all"); require("core-js/modules/esnext.symbol.dispose"); @@ -208,6 +210,4 @@ require("core-js/modules/web.url.to-json"); require("core-js/modules/web.url-search-params"); -require("core-js/modules/esnext.string.match-all"); - 1 ** 2;