html-validate-jest-snapshot

6.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"
  }
}

/html-validate-jest-snapshot/

    Package Sidebar

    Install

    npm i html-validate-jest-snapshot

    Weekly Downloads

    1

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    88.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • ext