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

@@ -19,9 +19,7 @@ var _jestSnapshot = require('jest-snapshot');
// test execution and add them to the test result, potentially failing
// a passing test.
const addSuppressedErrors = result => {
const _getState = (0, _expect.getState)(),
suppressedErrors = _getState.suppressedErrors;
const {suppressedErrors} = (0, _expect.getState)();
(0, _expect.setState)({
suppressedErrors: []
});
@@ -62,7 +60,7 @@ const patchJasmine = () => {
constructor(attr) {
const resultCallback = attr.resultCallback;
attr.resultCallback = function(result) {
attr.resultCallback = function (result) {
addSuppressedErrors(result);
addAssertionErrors(result);
resultCallback.call(attr, result);
@@ -95,8 +93,7 @@ var _default = ({config, globalConfig, localRequire, testPath}) => {
(0, _jestSnapshot.addSerializer)(localRequire(path));
});
patchJasmine();
const expand = globalConfig.expand,
updateSnapshot = globalConfig.updateSnapshot;
const {expand, updateSnapshot} = globalConfig;
const snapshotResolver = (0, _jestSnapshot.buildSnapshotResolver)(config);
const snapshotPath = snapshotResolver.resolveSnapshotPath(testPath);
const snapshotState = new _jestSnapshot.SnapshotState(snapshotPath, {
@@ -105,7 +102,8 @@ var _default = ({config, globalConfig, localRequire, testPath}) => {
getPrettier: () =>
config.prettierPath ? require(config.prettierPath) : null,
updateSnapshot
});
}); // @ts-expect-error: snapshotState is a jest extension of `expect`
(0, _expect.setState)({
snapshotState,
testPath