Approvals.NodeJS Versions Save

Approval Tests implementation in NodeJS

v5.2.1

1 year ago

Added support for the default date output of date.toUTCString()

v5.2.0

1 year ago

Allows

        const digits = [1,2,3,4,5];
        verifyAll("Squared", digits, d => `${d} => ${d*d}` );

to produce

Squared


1 => 1
2 => 4
3 => 9
4 => 16
5 => 25

v5.1.0

1 year ago

Also templates

v5.0.0

1 year ago

Breaking changes

Simple Logger

The names in simplelogger have changed to be camelCase for example

- use_markers()
+ useMarkers()

JestApprovals

Fixed a bug that lead to approval files with 2 or more spaces not being converted to underscores (_)

Addititions

Options.withScrubber()

v4.1.1

1 year ago
  1. Jest Approvals
  2. SimpleLogger with output
  3. Some Typescript

v4.0.5

1 year ago

Another non-functional release.

v4.0.4

1 year ago

This is a non-functional to allow us to start migrating stuff to TypeScript.

v4.0.3

1 year ago

All files that aren't .png are now considered text and will be created empty if they don't exist.

note: expect future release to support more binary files

v4.0.0-beta.1

3 years ago

✨ ✨ NEW and Shiny ✨ ✨

  • New configuration options:
    // Default to `false` - launching each diff tool in the background, failing the test and
    // moving on to the next test. If `true` will launch the diff tool and block/wait (if diff tool supports this) until
    // the user exits the diff tool before continuing on with the rest of the tests.
    blockUntilReporterExits: false,
    
    // The number of reporters (diff tools) launched before before approval tests stops launching new reporters.
    // This is to avoid overloading a system with too many processes.
    // NOTE: This value is only used if `blockUntilReporterExits` is `false`.
    maxLaunches: 10
    
  • Per the maxLaunches in the config above we do not continue launching diff tools once we've reached the maxLaunches value (default is 10).

Updates

  • Fix an issue where null could fail a verify: #85 (Thanks @cuzzlor)
  • Doc update/fix #95 (Thanks @alexanderbird and @claremacrae)
  • Updated various npm dependencies
  • Tons of internal refactorings

3.1.0-beta.1

3 years ago

FEEDBACK NEEDED (we're researching in this beta)

Updates

  • Fix an issue where null could fail a verify: #85 (Thanks @cuzzlor)
  • Doc update/fix #95 (Thanks @alexanderbird)
  • Updated dependencies