Approval Tests implementation in NodeJS
Added support for the default date output of date.toUTCString()
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
Also templates
Another non-functional release.
This is a non-functional to allow us to start migrating stuff to TypeScript.
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
// 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
maxLaunches
in the config above we do not continue launching diff tools once we've reached the maxLaunches
value (default is 10
).null
could fail a verify: #85 (Thanks @cuzzlor)null
could fail a verify: #85 (Thanks @cuzzlor)