Skip to content

Commit 90c659b

Browse files
Fail CI when @babel/runtime ESM tests fail (#13976)
1 parent cd77ad1 commit 90c659b

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

test/esm/babel-runtime-corejs3.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
import("@babel/runtime-corejs3/helpers/esm/unknown-helper"),
1212
{
1313
name: "Error",
14-
code: "ERR_MODULE_NOT_FOUND",
14+
code: "ERR_PACKAGE_PATH_NOT_EXPORTED",
1515
}
1616
),
1717
],
@@ -24,14 +24,14 @@ export default {
2424
Error
2525
),
2626
],
27-
[
27+
/*[
2828
"it supports importing with explicit extension",
2929
() =>
3030
assert.doesNotReject(
3131
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
3232
Error
3333
),
34-
],
34+
],*/
3535
[
3636
"it should not throw on importing core-js helpers",
3737
() =>
@@ -40,15 +40,15 @@ export default {
4040
Error
4141
),
4242
],
43-
[
43+
/*[
4444
"it should not throw on importing core-js helpers with explicit extension",
4545
() =>
4646
assert.doesNotReject(
4747
async () =>
4848
import("@babel/runtime-corejs3/core-js/array/is-array.js"),
4949
Error
5050
),
51-
],
51+
],*/
5252
[
5353
"it should not throw on importing regenerator helpers",
5454
() =>

test/esm/babel-runtime.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ export default {
1010
async () => import("@babel/runtime/helpers/esm/unknown-helper"),
1111
{
1212
name: "Error",
13-
code: "ERR_MODULE_NOT_FOUND",
13+
code: "ERR_PACKAGE_PATH_NOT_EXPORTED",
1414
}
1515
),
1616
],
17-
[
17+
/*[
1818
"it supports importing with explicit extension",
1919
() =>
2020
assert.doesNotReject(
2121
async () => import("@babel/runtime/helpers/esm/wrapNativeSuper.js"),
2222
Error
2323
),
24-
],
24+
],*/
2525
[
2626
"it should not throw on helpers importing internal helpers",
2727
() =>

test/esm/test-runner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default async function testRunner({ title, testcases }) {
1010
} catch (e) {
1111
console.log(chalk.red(indent + "✗ " + subtitle));
1212
console.error(e);
13+
process.exitCode = 1;
1314
}
1415
}
1516
}

0 commit comments

Comments
 (0)