jest-snapshot
Advanced tools
Comparing version 21.3.0-alpha.1e3ee68e to 21.3.0-alpha.eff7a1cf
@@ -25,10 +25,10 @@ 'use strict'; | ||
var _plugins = require('./plugins'); | ||
var _utils = require('./utils');function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /** | ||
* Copyright (c) 2014-present, Facebook, Inc. 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. | ||
* | ||
* | ||
*/const fileExists = (filePath, hasteFS) => hasteFS.exists(filePath) || _fs2.default.existsSync(filePath);const cleanup = (hasteFS, update) => {const pattern = '\\.' + _utils.SNAPSHOT_EXTENSION + '$';const files = hasteFS.matchFiles(pattern); | ||
var _utils = require('./utils');var utils = _interopRequireWildcard(_utils);function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;} else {var newObj = {};if (obj != null) {for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];}}newObj.default = obj;return newObj;}}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /** | ||
* Copyright (c) 2014-present, Facebook, Inc. 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. | ||
* | ||
* | ||
*/const fileExists = (filePath, hasteFS) => hasteFS.exists(filePath) || _fs2.default.existsSync(filePath);const cleanup = (hasteFS, update) => {const pattern = '\\.' + utils.SNAPSHOT_EXTENSION + '$';const files = hasteFS.matchFiles(pattern); | ||
const filesRemoved = files. | ||
@@ -41,3 +41,3 @@ filter( | ||
'..', | ||
_path2.default.basename(snapshotFile, '.' + _utils.SNAPSHOT_EXTENSION)), | ||
_path2.default.basename(snapshotFile, '.' + utils.SNAPSHOT_EXTENSION)), | ||
@@ -153,3 +153,3 @@ hasteFS)). | ||
module.exports = { | ||
EXTENSION: _utils.SNAPSHOT_EXTENSION, | ||
EXTENSION: utils.SNAPSHOT_EXTENSION, | ||
SnapshotState: _State2.default, | ||
@@ -160,2 +160,3 @@ addSerializer: _plugins.addSerializer, | ||
toMatchSnapshot, | ||
toThrowErrorMatchingSnapshot }; | ||
toThrowErrorMatchingSnapshot, | ||
utils }; |
{ | ||
"name": "jest-snapshot", | ||
"version": "21.3.0-alpha.1e3ee68e", | ||
"version": "21.3.0-alpha.eff7a1cf", | ||
"repository": { | ||
@@ -12,8 +12,8 @@ "type": "git", | ||
"chalk": "^2.0.1", | ||
"jest-diff": "21.3.0-alpha.1e3ee68e", | ||
"jest-matcher-utils": "21.3.0-alpha.1e3ee68e", | ||
"jest-diff": "21.3.0-alpha.eff7a1cf", | ||
"jest-matcher-utils": "21.3.0-alpha.eff7a1cf", | ||
"mkdirp": "^0.5.1", | ||
"natural-compare": "^1.4.0", | ||
"pretty-format": "21.3.0-alpha.1e3ee68e" | ||
"pretty-format": "21.3.0-alpha.eff7a1cf" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23598
401
+ Addedjest-diff@21.3.0-alpha.eff7a1cf(transitive)
+ Addedjest-get-type@21.3.0-alpha.eff7a1cf(transitive)
+ Addedjest-matcher-utils@21.3.0-alpha.eff7a1cf(transitive)
+ Addedpretty-format@21.3.0-alpha.eff7a1cf(transitive)
- Removedjest-diff@21.3.0-alpha.1e3ee68e(transitive)
- Removedjest-get-type@21.3.0-alpha.1e3ee68e(transitive)
- Removedjest-matcher-utils@21.3.0-alpha.1e3ee68e(transitive)
- Removedpretty-format@21.3.0-alpha.1e3ee68e(transitive)