Skip to content

Releases: approvals/Approvals.NodeJS

Typescript

29 Apr 19:15

Choose a tag to compare

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"

Fix JestReporter importing full class instead of type

31 Oct 17:35

Choose a tag to compare

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.

fix version number in npm package

31 Oct 16:40

Choose a tag to compare

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

Minor bug with Angular + Jest

08 Sep 23:12

Choose a tag to compare

Added check when running JestApprovals in angular

v6.2.1: Fix some warnings about imports

10 Apr 21:07

Choose a tag to compare

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

Add JestReporter reporter for CI

04 Apr 17:03

Choose a tag to compare

Jest Approvals supports more customizations, and CombinationApprovals

23 Mar 17:26

Choose a tag to compare

  • 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.

Spelling error: DataScrubber -> DateScrubber

06 Nov 19:29

Choose a tag to compare

There was a type in the name

More DateScrubber support

06 Nov 15:11

Choose a tag to compare

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

Jest verifyAll

06 Nov 09:59

Choose a tag to compare

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