snap-shot-core
Advanced tools
Comparing version 5.0.4 to 6.0.0
{ | ||
"name": "snap-shot-core", | ||
"description": "Save / load named snapshots, useful for tests", | ||
"version": "5.0.4", | ||
"version": "6.0.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -83,5 +83,5 @@ "bugs": "https://github.com/bahmutov/snap-shot-core/issues", | ||
"devDependencies": { | ||
"ban-sensitive-files": "1.9.1", | ||
"dependency-check": "2.10.1", | ||
"deps-ok": "1.2.2", | ||
"ban-sensitive-files": "1.9.2", | ||
"dependency-check": "3.1.0", | ||
"deps-ok": "1.4.1", | ||
"disparity": "2.0.0", | ||
@@ -91,12 +91,12 @@ "dont-crack": "1.2.1", | ||
"github-post-release": "1.13.1", | ||
"license-checker": "13.1.0", | ||
"mocha": "3.5.3", | ||
"license-checker": "18.1.0", | ||
"mocha": "5.1.1", | ||
"next-update-travis": "1.7.1", | ||
"nsp": "2.8.1", | ||
"nsp": "3.2.1", | ||
"pre-git": "3.17.1", | ||
"semantic-release": "7.0.2", | ||
"simple-commit-message": "3.3.2", | ||
"sinon": "3.3.0", | ||
"snap-shot-it": "1.4.0", | ||
"standard": "10.0.3" | ||
"sinon": "5.0.4", | ||
"snap-shot-it": "4.1.5", | ||
"standard": "11.0.1" | ||
}, | ||
@@ -103,0 +103,0 @@ "dependencies": { |
@@ -99,2 +99,4 @@ 'use strict' | ||
function raiseIfDifferent (options) { | ||
options = options || {} | ||
const value = options.value | ||
@@ -116,4 +118,9 @@ const expected = options.expected | ||
la(is.unemptyString(message), 'missing err string', message) | ||
console.log(message) | ||
throw new Error(message) | ||
const fullMessage = `Different value of snapshot "${specName}"\n${message}` | ||
// QUESTION should we print the error message by default? | ||
console.error(fullMessage) | ||
throw new Error(fullMessage) | ||
}) | ||
@@ -120,0 +127,0 @@ } |
31756
602