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"),
|
import("@babel/runtime-corejs3/helpers/esm/unknown-helper"),
|
||||||
{
|
{
|
||||||
name: "Error",
|
name: "Error",
|
||||||
code: "ERR_MODULE_NOT_FOUND",
|
code: "ERR_PACKAGE_PATH_NOT_EXPORTED",
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -24,14 +24,14 @@ export default {
|
|||||||
Error
|
Error
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
[
|
/*[
|
||||||
"it supports importing with explicit extension",
|
"it supports importing with explicit extension",
|
||||||
() =>
|
() =>
|
||||||
assert.doesNotReject(
|
assert.doesNotReject(
|
||||||
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
|
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
|
||||||
Error
|
Error
|
||||||
),
|
),
|
||||||
],
|
],*/
|
||||||
[
|
[
|
||||||
"it should not throw on importing core-js helpers",
|
"it should not throw on importing core-js helpers",
|
||||||
() =>
|
() =>
|
||||||
@ -40,7 +40,7 @@ export default {
|
|||||||
Error
|
Error
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
[
|
/*[
|
||||||
"it should not throw on importing core-js helpers with explicit extension",
|
"it should not throw on importing core-js helpers with explicit extension",
|
||||||
() =>
|
() =>
|
||||||
assert.doesNotReject(
|
assert.doesNotReject(
|
||||||
@ -48,7 +48,7 @@ export default {
|
|||||||
import("@babel/runtime-corejs3/core-js/array/is-array.js"),
|
import("@babel/runtime-corejs3/core-js/array/is-array.js"),
|
||||||
Error
|
Error
|
||||||
),
|
),
|
||||||
],
|
],*/
|
||||||
[
|
[
|
||||||
"it should not throw on importing regenerator helpers",
|
"it should not throw on importing regenerator helpers",
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
@ -10,18 +10,18 @@ export default {
|
|||||||
async () => import("@babel/runtime/helpers/esm/unknown-helper"),
|
async () => import("@babel/runtime/helpers/esm/unknown-helper"),
|
||||||
{
|
{
|
||||||
name: "Error",
|
name: "Error",
|
||||||
code: "ERR_MODULE_NOT_FOUND",
|
code: "ERR_PACKAGE_PATH_NOT_EXPORTED",
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
[
|
/*[
|
||||||
"it supports importing with explicit extension",
|
"it supports importing with explicit extension",
|
||||||
() =>
|
() =>
|
||||||
assert.doesNotReject(
|
assert.doesNotReject(
|
||||||
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
|
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
|
||||||
Error
|
Error
|
||||||
),
|
),
|
||||||
],
|
],*/
|
||||||
[
|
[
|
||||||
"it should not throw on helpers importing internal helpers",
|
"it should not throw on helpers importing internal helpers",
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
@ -10,6 +10,7 @@ export default async function testRunner({ title, testcases }) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(chalk.red(indent + "✗ " + subtitle));
|
console.log(chalk.red(indent + "✗ " + subtitle));
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
process.exitCode = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user