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