From ef02c8789eac74e48c576a9641f3e052ddcdf263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Wed, 13 Mar 2024 13:04:33 -0400 Subject: [PATCH 1/4] infra: run transform tests on old node --- packages/babel-helper-fixtures/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/babel-helper-fixtures/src/index.ts b/packages/babel-helper-fixtures/src/index.ts index 788e9a3970f9..549292288918 100644 --- a/packages/babel-helper-fixtures/src/index.ts +++ b/packages/babel-helper-fixtures/src/index.ts @@ -269,7 +269,11 @@ function pushTask( } if (semver.lt(nodeVersion, minimumVersion)) { - return; + if (test.actual.code) { + test.exec.code = null; + } else { + return; + } } // Delete to avoid option validation error From 2cf3adb9dab852887b4a01640566bda443a6ef23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 14 Mar 2024 14:13:50 -0400 Subject: [PATCH 2/4] add minNodeVersionInputJs option --- CONTRIBUTING.md | 4 +++- .../babel-helper-fixtures/data/schema.json | 20 +++++++++++++------ packages/babel-helper-fixtures/src/index.ts | 18 +++++++++++++++++ 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 430e454ded3f..915be7bf666c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -295,7 +295,7 @@ Other than normal Babel options, `options.json` can contain other properties to - **`minNodeVersion`** (string) - If the test requires a minimum Node version, you can add `minNodeVersion` (must be in semver format). + If an `exec.js`` test requires a minimum Node version, you can add `minNodeVersion` (must be in semver format). ```jsonc // options.json example @@ -304,6 +304,8 @@ Other than normal Babel options, `options.json` can contain other properties to } ``` + Use `minNodeVersionInputJs` if an `input.js` test requires a minimum Node version. + - **`externalHelpers`** (boolean) By default, all the tests run with the [`@babel/plugin-external-helpers`](https://babel.dev/docs/en/babel-plugin-external-helpers) enabled. You can disable this behavior with diff --git a/packages/babel-helper-fixtures/data/schema.json b/packages/babel-helper-fixtures/data/schema.json index 4acbff00af3d..3e3b8469e6da 100644 --- a/packages/babel-helper-fixtures/data/schema.json +++ b/packages/babel-helper-fixtures/data/schema.json @@ -4,11 +4,14 @@ "description": "JSON schema for Babel Fixture Test Runner", "allOf": [ { "$ref": "#/definitions/TaskOption" }, - { "$ref": "https://json.schemastore.org/babelrc", "$comment": "Todo: switch to our inhouse schema" } + { + "$ref": "https://json.schemastore.org/babelrc", + "$comment": "Todo: switch to our inhouse schema" + } ], "definitions": { "OS": { - "type":"string", + "type": "string", "description": "The possible values of `process.platform`. See https://nodejs.org/api/process.html#process_process_platform", "enum": ["aix", "darwin", "freebsd", "linux", "openbsd", "sunos", "win32"] }, @@ -17,14 +20,19 @@ "properties": { "BABEL_8_BREAKING": { "description": "Whether this test should run when BABEL_8_BREAKING is enabled", - "type":"boolean" + "type": "boolean" }, "ignoreOutput": { "description": "Whether the test should generate and compare with output.js", "type": "boolean" }, "minNodeVersion": { - "description": "The minimum Node.js version this test should run on", + "description": "The minimum Node.js version the exec.js test should run on", + "type": "string", + "pattern": "^\\d+(\\.\\d+){0,2}$" + }, + "minNodeVersionInputJs": { + "description": "The minimum Node.js version the input.js transform test should run on", "type": "string", "pattern": "^\\d+(\\.\\d+){0,2}$" }, @@ -39,12 +47,12 @@ }, "throws": { "description": "Expected thrown error message", - "type":"string", + "type": "string", "default": "" }, "validateLogs": { "description": "Whether this test should validate the stdout and stderr", - "type":"boolean", + "type": "boolean", "default": false } } diff --git a/packages/babel-helper-fixtures/src/index.ts b/packages/babel-helper-fixtures/src/index.ts index 549292288918..227e1570d3c8 100644 --- a/packages/babel-helper-fixtures/src/index.ts +++ b/packages/babel-helper-fixtures/src/index.ts @@ -53,6 +53,7 @@ export interface TaskOptions extends InputOptions { externalHelpers?: boolean; ignoreOutput?: boolean; minNodeVersion?: string; + minNodeVersionInputJs?: string; sourceMap?: boolean; os?: string | string[]; validateLogs?: boolean; @@ -280,6 +281,23 @@ function pushTask( delete taskOpts.minNodeVersion; } + if (taskOpts.minNodeVersionInputJs) { + const minimumVersion = semver.clean(taskOpts.minNodeVersionInputJs); + + if (minimumVersion == null) { + throw new Error( + `'minNodeVersionInputJs' has invalid semver format: ${taskOpts.minNodeVersionInputJs}`, + ); + } + + if (semver.lt(nodeVersion, minimumVersion)) { + return; + } + + // Delete to avoid option validation error + delete taskOpts.minNodeVersionInputJs; + } + if (taskOpts.os) { let os = taskOpts.os; From 4a5de3a7eefaf0eb094d04f252f99073ea2fb11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 14 Mar 2024 14:14:11 -0400 Subject: [PATCH 3/4] migrate some tests to minNodeVersionInputJs --- .../babel-helpers/test/fixtures/dependencies/options.json | 2 +- packages/babel-helpers/test/fixtures/misc/9496/options.json | 2 +- .../misc/arguments-identifier-in-function/options.json | 4 ++-- .../options.json | 2 +- .../fixtures/integration/helper-function-name/options.json | 2 +- .../test/fixtures/smart/pipe-body-with-await/options.json | 6 +++--- .../smart/transform-await-and-arrow-functions/options.json | 2 +- .../test/fixtures/basic/string-properties/options.json | 2 +- .../fixtures/transform-u/string-properties/options.json | 2 +- .../unicode-sets-regex-chrome-111/options.json | 2 +- .../test/fixtures/flow-parser/hermes/options.json | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/babel-helpers/test/fixtures/dependencies/options.json b/packages/babel-helpers/test/fixtures/dependencies/options.json index 786c2fed1398..3387f02c3981 100644 --- a/packages/babel-helpers/test/fixtures/dependencies/options.json +++ b/packages/babel-helpers/test/fixtures/dependencies/options.json @@ -1,4 +1,4 @@ { - "minNodeVersion": "12.22.0", + "minNodeVersionInputJs": "12.22.0", "externalHelpers": false } diff --git a/packages/babel-helpers/test/fixtures/misc/9496/options.json b/packages/babel-helpers/test/fixtures/misc/9496/options.json index 484633d64278..26158f952a14 100644 --- a/packages/babel-helpers/test/fixtures/misc/9496/options.json +++ b/packages/babel-helpers/test/fixtures/misc/9496/options.json @@ -1,4 +1,4 @@ { - "minNodeVersion": "12.22.0", + "minNodeVersionInputJs": "12.22.0", "plugins": ["./plugin"] } diff --git a/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json b/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json index 96a77b3b4890..26158f952a14 100644 --- a/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json +++ b/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json @@ -1,4 +1,4 @@ { - "plugins": ["./plugin"], - "minNodeVersion": "12.0.0" + "minNodeVersionInputJs": "12.22.0", + "plugins": ["./plugin"] } diff --git a/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json b/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json index 484633d64278..26158f952a14 100644 --- a/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json +++ b/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json @@ -1,4 +1,4 @@ { - "minNodeVersion": "12.22.0", + "minNodeVersionInputJs": "12.22.0", "plugins": ["./plugin"] } diff --git a/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json b/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json index 4597692aea15..81504d8aad11 100644 --- a/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json +++ b/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json @@ -1,5 +1,5 @@ { - "minNodeVersion": "12.11.0", + "minNodeVersionInputJs": "12.11.0", "plugins": [ "./plugin.mjs", "bugfix-safari-id-destructuring-collision-in-function-expression" diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json index 60d482269ddd..d7ac450f8c07 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json @@ -1,6 +1,6 @@ { - "minNodeVersion": "8.0.0", + "minNodeVersionInputJs": "8.0.0", "parserOpts": { - "allowReturnOutsideFunction": true - } + "allowReturnOutsideFunction": true + } } diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json index 6a7e42fdd0c8..524d7fa48914 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json @@ -6,5 +6,5 @@ "parserOpts": { "allowReturnOutsideFunction": true }, - "minNodeVersion": "8.0.0" + "minNodeVersionInputJs": "8.0.0" } diff --git a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json index 22b476c4bb57..943696d60ce8 100644 --- a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json +++ b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json @@ -1,3 +1,3 @@ { - "minNodeVersion": "12.0.0" + "minNodeVersionInputJs": "12.0.0" } diff --git a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json index 22b476c4bb57..943696d60ce8 100644 --- a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json +++ b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json @@ -1,3 +1,3 @@ { - "minNodeVersion": "12.0.0" + "minNodeVersionInputJs": "12.0.0" } diff --git a/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json b/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json index 3b8817288759..d9b5dce63d44 100644 --- a/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json +++ b/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json @@ -1,5 +1,5 @@ { - "minNodeVersion": "12.0.0", + "minNodeVersionInputJs": "12.0.0", "presets": [ [ "env", diff --git a/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json b/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json index 80adf8f23237..fec24d1a52cc 100644 --- a/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json +++ b/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json @@ -1,5 +1,5 @@ { "BABEL_8_BREAKING": false, "presets": [["flow", { "experimental_useHermesParser": true }]], - "minNodeVersion": "12.0.0" + "minNodeVersionInputJs": "12.0.0" } From 807701ad33838529b776cc86ded7b0a993705c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 15 Mar 2024 10:54:10 -0400 Subject: [PATCH 4/4] rename minNodeVersionInputJs to minNodeVersionTransform --- CONTRIBUTING.md | 2 +- packages/babel-helper-fixtures/data/schema.json | 2 +- packages/babel-helper-fixtures/src/index.ts | 10 +++++----- .../test/fixtures/dependencies/options.json | 2 +- .../babel-helpers/test/fixtures/misc/9496/options.json | 2 +- .../misc/arguments-identifier-in-function/options.json | 2 +- .../options.json | 2 +- .../integration/helper-function-name/options.json | 2 +- .../fixtures/smart/pipe-body-with-await/options.json | 2 +- .../transform-await-and-arrow-functions/options.json | 2 +- .../test/fixtures/basic/string-properties/options.json | 2 +- .../transform-u/string-properties/options.json | 2 +- .../unicode-sets-regex-chrome-111/options.json | 2 +- .../test/fixtures/flow-parser/hermes/options.json | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 915be7bf666c..fd08ad176246 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -304,7 +304,7 @@ Other than normal Babel options, `options.json` can contain other properties to } ``` - Use `minNodeVersionInputJs` if an `input.js` test requires a minimum Node version. + Use `minNodeVersionTransform` if an `input.js` test requires a minimum Node version. - **`externalHelpers`** (boolean) diff --git a/packages/babel-helper-fixtures/data/schema.json b/packages/babel-helper-fixtures/data/schema.json index 3e3b8469e6da..c65781af8bba 100644 --- a/packages/babel-helper-fixtures/data/schema.json +++ b/packages/babel-helper-fixtures/data/schema.json @@ -31,7 +31,7 @@ "type": "string", "pattern": "^\\d+(\\.\\d+){0,2}$" }, - "minNodeVersionInputJs": { + "minNodeVersionTransform": { "description": "The minimum Node.js version the input.js transform test should run on", "type": "string", "pattern": "^\\d+(\\.\\d+){0,2}$" diff --git a/packages/babel-helper-fixtures/src/index.ts b/packages/babel-helper-fixtures/src/index.ts index 227e1570d3c8..04759bca21c0 100644 --- a/packages/babel-helper-fixtures/src/index.ts +++ b/packages/babel-helper-fixtures/src/index.ts @@ -53,7 +53,7 @@ export interface TaskOptions extends InputOptions { externalHelpers?: boolean; ignoreOutput?: boolean; minNodeVersion?: string; - minNodeVersionInputJs?: string; + minNodeVersionTransform?: string; sourceMap?: boolean; os?: string | string[]; validateLogs?: boolean; @@ -281,12 +281,12 @@ function pushTask( delete taskOpts.minNodeVersion; } - if (taskOpts.minNodeVersionInputJs) { - const minimumVersion = semver.clean(taskOpts.minNodeVersionInputJs); + if (taskOpts.minNodeVersionTransform) { + const minimumVersion = semver.clean(taskOpts.minNodeVersionTransform); if (minimumVersion == null) { throw new Error( - `'minNodeVersionInputJs' has invalid semver format: ${taskOpts.minNodeVersionInputJs}`, + `'minNodeVersionTransform' has invalid semver format: ${taskOpts.minNodeVersionTransform}`, ); } @@ -295,7 +295,7 @@ function pushTask( } // Delete to avoid option validation error - delete taskOpts.minNodeVersionInputJs; + delete taskOpts.minNodeVersionTransform; } if (taskOpts.os) { diff --git a/packages/babel-helpers/test/fixtures/dependencies/options.json b/packages/babel-helpers/test/fixtures/dependencies/options.json index 3387f02c3981..0911a5a4cf02 100644 --- a/packages/babel-helpers/test/fixtures/dependencies/options.json +++ b/packages/babel-helpers/test/fixtures/dependencies/options.json @@ -1,4 +1,4 @@ { - "minNodeVersionInputJs": "12.22.0", + "minNodeVersionTransform": "12.22.0", "externalHelpers": false } diff --git a/packages/babel-helpers/test/fixtures/misc/9496/options.json b/packages/babel-helpers/test/fixtures/misc/9496/options.json index 26158f952a14..1d610644a18a 100644 --- a/packages/babel-helpers/test/fixtures/misc/9496/options.json +++ b/packages/babel-helpers/test/fixtures/misc/9496/options.json @@ -1,4 +1,4 @@ { - "minNodeVersionInputJs": "12.22.0", + "minNodeVersionTransform": "12.22.0", "plugins": ["./plugin"] } diff --git a/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json b/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json index 26158f952a14..1d610644a18a 100644 --- a/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json +++ b/packages/babel-helpers/test/fixtures/misc/arguments-identifier-in-function/options.json @@ -1,4 +1,4 @@ { - "minNodeVersionInputJs": "12.22.0", + "minNodeVersionTransform": "12.22.0", "plugins": ["./plugin"] } diff --git a/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json b/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json index 26158f952a14..1d610644a18a 100644 --- a/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json +++ b/packages/babel-helpers/test/fixtures/misc/declaration-name-conflict-helper-entrypoint/options.json @@ -1,4 +1,4 @@ { - "minNodeVersionInputJs": "12.22.0", + "minNodeVersionTransform": "12.22.0", "plugins": ["./plugin"] } diff --git a/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json b/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json index 81504d8aad11..ac9b231f7ce2 100644 --- a/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json +++ b/packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/fixtures/integration/helper-function-name/options.json @@ -1,5 +1,5 @@ { - "minNodeVersionInputJs": "12.11.0", + "minNodeVersionTransform": "12.11.0", "plugins": [ "./plugin.mjs", "bugfix-safari-id-destructuring-collision-in-function-expression" diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json index d7ac450f8c07..f8b0106ade5d 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/pipe-body-with-await/options.json @@ -1,5 +1,5 @@ { - "minNodeVersionInputJs": "8.0.0", + "minNodeVersionTransform": "8.0.0", "parserOpts": { "allowReturnOutsideFunction": true } diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json index 524d7fa48914..c45028fbe477 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/transform-await-and-arrow-functions/options.json @@ -6,5 +6,5 @@ "parserOpts": { "allowReturnOutsideFunction": true }, - "minNodeVersionInputJs": "8.0.0" + "minNodeVersionTransform": "8.0.0" } diff --git a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json index 943696d60ce8..f7ec9e02cfe1 100644 --- a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json +++ b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/basic/string-properties/options.json @@ -1,3 +1,3 @@ { - "minNodeVersionInputJs": "12.0.0" + "minNodeVersionTransform": "12.0.0" } diff --git a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json index 943696d60ce8..f7ec9e02cfe1 100644 --- a/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json +++ b/packages/babel-plugin-transform-unicode-sets-regex/test/fixtures/transform-u/string-properties/options.json @@ -1,3 +1,3 @@ { - "minNodeVersionInputJs": "12.0.0" + "minNodeVersionTransform": "12.0.0" } diff --git a/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json b/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json index d9b5dce63d44..ca73025b99b5 100644 --- a/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json +++ b/packages/babel-preset-env/test/fixtures/preset-options-babel-7/unicode-sets-regex-chrome-111/options.json @@ -1,5 +1,5 @@ { - "minNodeVersionInputJs": "12.0.0", + "minNodeVersionTransform": "12.0.0", "presets": [ [ "env", diff --git a/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json b/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json index fec24d1a52cc..cb00f51696fd 100644 --- a/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json +++ b/packages/babel-preset-flow/test/fixtures/flow-parser/hermes/options.json @@ -1,5 +1,5 @@ { "BABEL_8_BREAKING": false, "presets": [["flow", { "experimental_useHermesParser": true }]], - "minNodeVersionInputJs": "12.0.0" + "minNodeVersionTransform": "12.0.0" }