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 a89f67f commit cd031e5Copy full SHA for cd031e5
scripts/run-ci-javascript-tests.js
@@ -24,6 +24,7 @@ const numberOfMaxWorkers = argv.maxWorkers || 1;
24
let exitCode;
25
26
const JEST_BINARY = argv.jestBinary || './node_modules/.bin/jest';
27
+const FLOW_BINARY = argv.flowBinary;
28
const YARN_BINARY = argv.yarnBinary || 'yarn';
29
30
function describe(message) {
@@ -55,7 +56,11 @@ try {
55
56
}
57
58
describe('Test: Flow check');
- if (exec(`${YARN_BINARY} run flow-check`).code) {
59
+ const flowCommand =
60
+ FLOW_BINARY == null
61
+ ? `${YARN_BINARY} run flow-check`
62
+ : `${FLOW_BINARY} check`;
63
+ if (exec(flowCommand).code) {
64
echo('Failed to run flow.');
65
exitCode = 1;
66
throw Error(exitCode);
0 commit comments