check-side-effects
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -134,3 +134,3 @@ "use strict"; | ||
diff = diff_1.createPatch(expectedOutputPath, expectedOutput, result); | ||
failedExpectations.push(diff); | ||
failedExpectations.push({ testDescription: modulesDescription, diff: diff }); | ||
if (options.update) { | ||
@@ -150,3 +150,4 @@ _recursiveMkDir(path_1.dirname(expectedOutputPath)); | ||
console.log('The following snapshots have changed:\n\n'); | ||
console.log(failedExpectations.map(function (diff) { return diff + "\n"; }).join('\n')); | ||
console.log(failedExpectations | ||
.map(function (s) { return "Snapshot for " + s.testDescription + " changed:\n\n" + s.diff + "\n"; }).join('\n')); | ||
if (options.update) { | ||
@@ -153,0 +154,0 @@ console.log(failedExpectations.length + " test expectations updated.\n"); |
{ | ||
"name": "check-side-effects", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Check if a ES module has side effects.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/filipesilva/check-side-effects", |
Sorry, the diff of this file is not supported yet
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
35960
342