Skip to content

Commit

Permalink
Fail CI when @babel/runtime ESM tests fail (#13976)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 18, 2021
1 parent cd77ad1 commit 90c659b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test/esm/babel-runtime-corejs3.js
Expand Up @@ -11,7 +11,7 @@ export default {
import("@babel/runtime-corejs3/helpers/esm/unknown-helper"),
{
name: "Error",
code: "ERR_MODULE_NOT_FOUND",
code: "ERR_PACKAGE_PATH_NOT_EXPORTED",
}
),
],
Expand All @@ -24,14 +24,14 @@ export default {
Error
),
],
[
/*[
"it supports importing with explicit extension",
() =>
assert.doesNotReject(
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
Error
),
],
],*/
[
"it should not throw on importing core-js helpers",
() =>
Expand All @@ -40,15 +40,15 @@ export default {
Error
),
],
[
/*[
"it should not throw on importing core-js helpers with explicit extension",
() =>
assert.doesNotReject(
async () =>
import("@babel/runtime-corejs3/core-js/array/is-array.js"),
Error
),
],
],*/
[
"it should not throw on importing regenerator helpers",
() =>
Expand Down
6 changes: 3 additions & 3 deletions test/esm/babel-runtime.js
Expand Up @@ -10,18 +10,18 @@ export default {
async () => import("@babel/runtime/helpers/esm/unknown-helper"),
{
name: "Error",
code: "ERR_MODULE_NOT_FOUND",
code: "ERR_PACKAGE_PATH_NOT_EXPORTED",
}
),
],
[
/*[
"it supports importing with explicit extension",
() =>
assert.doesNotReject(
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
Error
),
],
],*/
[
"it should not throw on helpers importing internal helpers",
() =>
Expand Down
1 change: 1 addition & 0 deletions test/esm/test-runner.js
Expand Up @@ -10,6 +10,7 @@ export default async function testRunner({ title, testcases }) {
} catch (e) {
console.log(chalk.red(indent + "✗ " + subtitle));
console.error(e);
process.exitCode = 1;
}
}
}

0 comments on commit 90c659b

Please sign in to comment.