Skip to content

Releases: bahmutov/snap-shot-it

v7.4.2

08 May 18:21
Compare
Choose a tag to compare

7.4.2 (2019-05-08)

Bug Fixes

  • deps: update dependency snap-shot-compare to v2.8.1 (#353) (fbbb864)

v7.4.1

08 May 17:22
Compare
Choose a tag to compare

7.4.1 (2019-05-08)

Bug Fixes

  • deps: update dependency snap-shot-compare to v2.8.0 (c8719fe)

v7.4.0

07 May 19:54
Compare
Choose a tag to compare

7.4.0 (2019-05-07)

Features

  • add sortSnapshots config option (7fb952f)

See /~https://github.com/bahmutov/snap-shot-it#sorted-snapshots

v7.3.0

07 May 19:32
Compare
Choose a tag to compare

7.3.0 (2019-05-07)

Features

  • add env option SNAPSHOT_SKIP_PRUNING, closes #146 (bf1b251)

v7.2.0

07 May 19:17
273fcea
Compare
Choose a tag to compare

7.2.0 (2019-05-07)

Features

  • load custom pre-compare, compare and store functions 350 (#351) (273fcea)

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

v7.1.0

07 May 15:49
Compare
Choose a tag to compare

7.1.0 (2019-05-07)

Bug Fixes

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

v7.0.1

07 May 04:16
Compare
Choose a tag to compare

7.0.1 (2019-05-07)

Bug Fixes

  • deps: update dependency snap-shot-core to v8.1.0 (a6a3b29)

v7.0.0

06 May 20:29
Compare
Choose a tag to compare

7.0.0 (2019-05-06)

major

BREAKING CHANGES

  • stop automatically sort snapshots in the saved file.
    You can still sort using SNAPSHOT_SORT=1 environment variable.

v6.3.5

27 Apr 05:15
Compare
Choose a tag to compare

6.3.5 (2019-04-27)

Bug Fixes

  • deps: update dependency snap-shot-core to v8.0.3 (0568cd9)

v6.3.4

26 Apr 22:21
Compare
Choose a tag to compare

6.3.4 (2019-04-26)

Bug Fixes

  • deps: update dependency snap-shot-core to v8.0.2 (492b60b)