Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -3,7 +3,7 @@
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.addResult = exports.buildFailureTestResult = exports.makeEmptyAggregatedTestResult = void 0;
exports.createEmptyTestResult = exports.addResult = exports.buildFailureTestResult = exports.makeEmptyAggregatedTestResult = void 0;
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
@@ -51,7 +51,7 @@ exports.makeEmptyAggregatedTestResult = makeEmptyAggregatedTestResult;
const buildFailureTestResult = (testPath, err) => ({
console: undefined,
displayName: '',
displayName: undefined,
failureMessage: null,
leaks: false,
numFailingTests: 0,
@@ -61,6 +61,8 @@ const buildFailureTestResult = (testPath, err) => ({
openHandles: [],
perfStats: {
end: 0,
runtime: 0,
slow: false,
start: 0
},
skipped: false,
@@ -151,3 +153,33 @@ const addResult = (aggregatedResults, testResult) => {
};
exports.addResult = addResult;
const createEmptyTestResult = () => ({
leaks: false,
// That's legacy code, just adding it as needed for typing
numFailingTests: 0,
numPassingTests: 0,
numPendingTests: 0,
numTodoTests: 0,
openHandles: [],
perfStats: {
end: 0,
runtime: 0,
slow: false,
start: 0
},
skipped: false,
snapshot: {
added: 0,
fileDeleted: false,
matched: 0,
unchecked: 0,
uncheckedKeys: [],
unmatched: 0,
updated: 0
},
testFilePath: '',
testResults: []
});
exports.createEmptyTestResult = createEmptyTestResult;