JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25279F
  • License MIT

jest snaptshot transform for html-validate

Package Exports

  • html-validate-jest-snapshot

Readme

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