html-validate-jest-snapshot
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

html-validate-jest-snapshot

Transform jest snapshots for use with html-validate.

Limitations:

  • Currently only supports external .snap files, i.e. no inline snapshots.
  • Cannot differantiate between HTML and other snapshots datatypes. Do no use if you use a snapshot serializer like ConvertAnsi as it will cause false positives.

Usage

npm install --save-dev html-validate-jest-snapshot

In .htmlvalidate.json:

{
  "transform": {
    "^.*\\.snap$": "html-validate-jest-snapshot"
  }
}

Package Sidebar

Install

npm i html-validate-jest-snapshot

Weekly Downloads

2

Version

5.0.0

License

MIT

Unpacked Size

14.3 kB

Total Files

12

Last publish

Collaborators

  • ext