Releases: bahmutov/snap-shot-it
Releases · bahmutov/snap-shot-it
v7.4.2
v7.4.1
v7.4.0
v7.3.0
v7.2.0
7.2.0 (2019-05-07)
Features
You can pass your own NPM modules as pre-compare
, compare
and store
functions using package.json
. For example, to use both local and 3rd party NPM modules
{
"config": {
"snap-shot-it": {
"pre-compare": "./pre-compare",
"compare": "snap-shot-compare",
"store": "./store"
}
}
}
Each NPM module in this case should export a definition of a function that matches the expected core function
pre-compare
is simply an identity or transformation functioncompare
should match snap-shot-core#compare-function, for example see snap-shot-comparestore
is another identity or transformation function, see snap-shot-core#store-function
v7.1.0
7.1.0 (2019-05-07)
Bug Fixes
- package json comma (6f97332)
Features
if you add options to package.json
{
"config": {
"snap-shot-it": {
"useRelativePath": true
}
}
}
then nested specs will have nested folders inside __snapshots__
like
input spec files
specs/
spec.js
subfolder/
spec2.js
result should be
__snapshots__/
specs/
spec.js
subfolder/
spec2.js