Approvals.NodeJS Versions Save

Approval Tests implementation in NodeJS

v7.0.0

2 weeks ago

There should be no visible changes from this release ¯_(ツ)_/¯ But all of the source files have been upgraded to typescript.

Normally I would set this as a patch release, but I making it a major version as I am concerned about changes to have javascript and typescript handle exports.

I have had to use the following a bit

Imports

var a = require("a")
⇓
import {a} from "a"
or 
import * as a from "a"

v6.2.4

6 months ago

For the future, we have set "importsNotUsedAsValues" to "error" to prevent future recurrences.

This helps other packages that have this value set not error-out because they are using Approvals.

v6.2.3

6 months ago

Fixes #150 the 'v' in v6.2.3 caused trouble with npm

v6.2.2

8 months ago

Added check when running JestApprovals in angular

v6.2.1

1 year ago

This fixes the following warnings in v6.2.0

$ eslint ./src --fix && eslint ./tests --fix && tsc --noEmit --pretty && svelte-check
node_modules/approvals/lib/Core/Options.ts:2:1 - error TS1371: This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.
2 import {Namer} from "../Namer";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/approvals/lib/Providers/Jest/JestApprovals.ts:3:1 - error TS6133: 'getJestNamer' is declared but its value is never read.
3 import {getJestNamer} from "./JestNamer";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 2 errors in 2 files.
Errors  Files
     1  node_modules/approvals/lib/Core/Options.ts:2
     1  node_modules/approvals/lib/Providers/Jest/JestApprovals.ts:3

v6.2.0

1 year ago

v6.1.0

1 year ago
  • Jest approvals now has Options.withConfig() and Options.withNamer().
  • Fixed some warnings in code.
  • lib/Utilities/Printers.ts
  • lib/Providers/Jest/CombinationApprovals.ts

Documentation coming soon.

v6.0.0

1 year ago

There was a type in the name

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