We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d8847 commit 2db824aCopy full SHA for 2db824a
scripts/ciTest.js
@@ -54,6 +54,9 @@ async function runTests() {
54
console.log("Doing build_tests");
55
const buildTestDir = path.join(__dirname, "..", "jscomp", "build_tests");
56
const files = fs.readdirSync(buildTestDir);
57
+
58
+ let hasError = false;
59
60
for (const file of files) {
61
const testDir = path.join(buildTestDir, file);
62
if (file === "node_modules" || !fs.lstatSync(testDir).isDirectory()) {
@@ -72,9 +75,14 @@ async function runTests() {
72
75
console.log("✅ success in", file);
73
76
} else {
74
77
console.log(`❌ error in ${file} with stderr:\n`, out.stderr);
78
+ hasError = true;
79
}
80
81
82
83
+ if (hasError) {
84
+ process.exit(1);
85
+ }
86
87
88
if (formatTest) {
0 commit comments