Fail CI when @babel/runtime ESM tests fail (#13976)
This commit is contained in:
parent
cd77ad1680
commit
90c659b4cb
@ -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",
|
||||
}
|
||||
),
|
||||
],
|
||||
@ -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",
|
||||
() =>
|
||||
@ -40,7 +40,7 @@ export default {
|
||||
Error
|
||||
),
|
||||
],
|
||||
[
|
||||
/*[
|
||||
"it should not throw on importing core-js helpers with explicit extension",
|
||||
() =>
|
||||
assert.doesNotReject(
|
||||
@ -48,7 +48,7 @@ export default {
|
||||
import("@babel/runtime-corejs3/core-js/array/is-array.js"),
|
||||
Error
|
||||
),
|
||||
],
|
||||
],*/
|
||||
[
|
||||
"it should not throw on importing regenerator helpers",
|
||||
() =>
|
||||
|
||||
@ -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",
|
||||
() =>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user