Nominal Pizza Masticator
Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

jest-serializer-json-ld-script

1.0.5 • Public • Published

jest-serializer-json-ld-script

Build Status npm version Code Coverage Mentioned in Awesome Jest

Jest Snapshot serializer to better visualize React <script> elements containing LD+JSON data.

Installation

Install preset using npm:

npm install --save-dev jest-serializer-json-ld-script

or yarn:

yarn add --dev jest-serializer-json-ld-script

Usage

Configure Jest to use the serializer in jest.config.js:

module.exports = {
  snapshotSerializers: ["jest-serializer-json-ld-script"]
};

or package.json:

{
  "jest": {
    "snapshotSerializers": ["jest-serializer-json-ld-script"]
  }
}

Related Packages

License

Copyright 2019 Kepler Sticka-Jones. Licensed ISC

Install

npm i jest-serializer-json-ld-script

DownloadsWeekly Downloads

1,404

Version

1.0.5

License

ISC

Unpacked Size

31.1 kB

Total Files

20

Last publish

Collaborators

  • avatar