mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 14:13:49 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
30
node_modules/jest-util/build/getFailedSnapshotTests.js
generated
vendored
30
node_modules/jest-util/build/getFailedSnapshotTests.js
generated
vendored
|
@ -1,30 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* 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 getFailedSnapshotTests(testResults) {
|
||||
const failedTestPaths = [];
|
||||
|
||||
if (testResults.numFailedTests === 0 || !testResults.testResults) {
|
||||
return failedTestPaths;
|
||||
}
|
||||
|
||||
testResults.testResults.forEach(testResult => {
|
||||
if (testResult.snapshot && testResult.snapshot.unmatched) {
|
||||
failedTestPaths.push(testResult.testFilePath);
|
||||
}
|
||||
});
|
||||
return failedTestPaths;
|
||||
}
|
||||
|
||||
var _default = getFailedSnapshotTests;
|
||||
exports.default = _default;
|
Loading…
Add table
Add a link
Reference in a new issue