Updating NPM dependencies
This commit is contained in:
39
node_modules/@jest/core/build/getChangedFilesPromise.js
generated
vendored
39
node_modules/@jest/core/build/getChangedFilesPromise.js
generated
vendored
@@ -5,10 +5,20 @@ Object.defineProperty(exports, '__esModule', {
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _jestChangedFiles() {
|
||||
const data = require('jest-changed-files');
|
||||
|
||||
_jestChangedFiles = function _jestChangedFiles() {
|
||||
_jestChangedFiles = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -18,17 +28,7 @@ function _jestChangedFiles() {
|
||||
function _jestMessageUtil() {
|
||||
const data = require('jest-message-util');
|
||||
|
||||
_jestMessageUtil = function _jestMessageUtil() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require('chalk'));
|
||||
|
||||
_chalk = function _chalk() {
|
||||
_jestMessageUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -47,10 +47,13 @@ function _interopRequireDefault(obj) {
|
||||
*/
|
||||
var _default = (globalConfig, configs) => {
|
||||
if (globalConfig.onlyChanged) {
|
||||
const allRootsForAllProjects = configs.reduce(
|
||||
(roots, config) => [...roots, ...(config.roots || [])],
|
||||
[]
|
||||
);
|
||||
const allRootsForAllProjects = configs.reduce((roots, config) => {
|
||||
if (config.roots) {
|
||||
roots.push(...config.roots);
|
||||
}
|
||||
|
||||
return roots;
|
||||
}, []);
|
||||
return (0, _jestChangedFiles().getChangedFilesForRoots)(
|
||||
allRootsForAllProjects,
|
||||
{
|
||||
@@ -66,9 +69,7 @@ var _default = (globalConfig, configs) => {
|
||||
.filter(line => !line.includes('Command failed:'))
|
||||
.join('\n');
|
||||
console.error(_chalk().default.red(`\n\n${message}`));
|
||||
process.exit(1); // We do process.exit, so this is dead code
|
||||
|
||||
return Promise.reject(e);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user