react/scripts/release/build-commands/run-automated-tests.js
Dan Abramov 0af8199709 Revert "comment out temporarily"
This reverts commit 9abb9cd50a.
2018-10-10 17:23:18 +01:00

24 lines
626 B
JavaScript

#!/usr/bin/env node
'use strict';
const {logPromise, runYarnTask} = require('../utils');
module.exports = async ({cwd}) => {
await logPromise(runYarnTask(cwd, 'lint', 'Lint failed'), 'Running ESLint');
await logPromise(
runYarnTask(cwd, 'flow-ci', 'Flow failed'),
'Running Flow checks'
);
await logPromise(
runYarnTask(cwd, 'test', 'Jest tests failed in development'),
'Running Jest tests in the development environment',
true
);
await logPromise(
runYarnTask(cwd, 'test-prod', 'Jest tests failed in production'),
'Running Jest tests in the production environment',
true
);
};