mirror of
https://github.com/actions/labeler
synced 2026-05-13 17:11:09 +02:00
build
This commit is contained in:
41
node_modules/@jest/reporters/build/get_snapshot_summary.js
generated
vendored
41
node_modules/@jest/reporters/build/get_snapshot_summary.js
generated
vendored
@@ -31,12 +31,26 @@ function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
function _toArray(arr) {
|
||||
return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError('Invalid attempt to destructure non-iterable instance');
|
||||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (
|
||||
Symbol.iterator in Object(iter) ||
|
||||
Object.prototype.toString.call(iter) === '[object Arguments]'
|
||||
)
|
||||
return Array.from(iter);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
if (Array.isArray(arr)) return arr;
|
||||
}
|
||||
|
||||
const ARROW = ' \u203A ';
|
||||
const DOWN_ARROW = ' \u21B3 ';
|
||||
const DOT = ' \u2022 ';
|
||||
@@ -140,6 +154,21 @@ var _default = (snapshots, globalConfig, updateCommand) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (snapshots.filesRemovedList && snapshots.filesRemovedList.length) {
|
||||
const _snapshots$filesRemov = _toArray(snapshots.filesRemovedList),
|
||||
head = _snapshots$filesRemov[0],
|
||||
tail = _snapshots$filesRemov.slice(1);
|
||||
|
||||
summary.push(
|
||||
` ${DOWN_ARROW} ${DOT}${(0, _utils.formatTestPath)(globalConfig, head)}`
|
||||
);
|
||||
tail.forEach(key => {
|
||||
summary.push(
|
||||
` ${DOT}${(0, _utils.formatTestPath)(globalConfig, key)}`
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if (snapshots.unchecked) {
|
||||
if (snapshots.didUpdate) {
|
||||
summary.push(
|
||||
|
||||
Reference in New Issue
Block a user