JSPM

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

jest snaptshot transform for html-validate

Package Exports

  • html-validate-jest-snapshot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (html-validate-jest-snapshot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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