Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update runtime integration tests for Node.js >= 16.6 (#13923)
- Loading branch information
1 parent
76e4566
commit 6393e60
Showing
8 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
================= require - auto ==================== | ||
typeof objectWithoutProperties: function | ||
typeof objectWithoutProperties.default: function | ||
obj: { b: 2, [Symbol(Symbol.toStringTag)]: 5 } | ||
================= require - esm ===================== | ||
Error: Must use import to load ES Module: <ROOT>/packages/babel-runtime/helpers/esm/toPrimitive.js | ||
require() of ES modules is not supported. | ||
require() of <ROOT>/packages/babel-runtime/helpers/esm/toPrimitive.js from <ROOT>/test/runtime-integration/src/require-esm.cjs is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. | ||
Instead rename toPrimitive.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from <ROOT>/packages/babel-runtime/helpers/esm/package.json. | ||
|
||
=============== require - corejs ==================== | ||
typeof Set: function | ||
arr: 1,2,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
================= require - auto ==================== | ||
typeof objectWithoutProperties: function | ||
typeof objectWithoutProperties.default: function | ||
obj: { b: 2, [Symbol(Symbol.toStringTag)]: 5 } | ||
================= require - esm ===================== | ||
Error: Must use import to load ES Module: <ROOT>/packages/babel-runtime/helpers/esm/toPrimitive.js | ||
require() of ES modules is not supported. | ||
require() of <ROOT>/packages/babel-runtime/helpers/esm/toPrimitive.js from <ROOT>/test/runtime-integration/src/absolute/require-esm.cjs is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. | ||
Instead rename toPrimitive.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from <ROOT>/packages/babel-runtime/helpers/esm/package.json. | ||
|
||
=============== require - corejs ==================== | ||
typeof Set: function | ||
arr: 1,2,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
================== import - auto ==================== | ||
typeof inheritsLoose: function | ||
A.__proto__ === B true | ||
================= import - esm ====================== | ||
typeof toArray: function | ||
arr: 1,2,3 | ||
=============== import - corejs ==================== | ||
typeof Set: function | ||
arr: 1,2,3 | ||
================= require - auto ==================== | ||
typeof objectWithoutProperties: function | ||
typeof objectWithoutProperties.default: function | ||
obj: { b: 2, [Symbol(Symbol.toStringTag)]: 5 } | ||
================= require - esm ===================== | ||
Error: Must use import to load ES Module: <ROOT>/packages/babel-runtime/helpers/esm/toPrimitive.js | ||
require() of ES modules is not supported. | ||
require() of <ROOT>/packages/babel-runtime/helpers/esm/toPrimitive.js from <ROOT>/test/runtime-integration/src/require-esm.cjs is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. | ||
Instead rename toPrimitive.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from <ROOT>/packages/babel-runtime/helpers/esm/package.json. | ||
|
||
=============== require - corejs ==================== | ||
typeof Set: function | ||
arr: 1,2,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters