We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7098c96 commit 53ea049Copy full SHA for 53ea049
tests/e2e_runner.js
@@ -38,6 +38,18 @@ const argv = minimist(process.argv.slice(2), {
38
});
39
40
41
+/**
42
+ * Set the error code of the process to 255. This is to ensure that if something forces node
43
+ * to exit without finishing properly, the error code will be 255. Right now that code is not used.
44
+ *
45
+ * When tests succeed we already call `process.exit(0)`, so this doesn't change any correct
46
+ * behaviour.
47
48
+ * One such case that would force node <= v6 to exit with code 0, is a Promise that doesn't resolve.
49
+ */
50
+process.exitCode = 255;
51
+
52
53
let currentFileName = null;
54
let index = 0;
55
0 commit comments