Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including jest-serializer-react-helmet with all npm packages installed. Try it out:

require("react/package.json"); // react is a peer dependency. require("react-helmet/package.json"); // react-helmet is a peer dependency. var jestSerializerReactHelmet = require("jest-serializer-react-helmet")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jest-serializer-react-helmet v1.0.6

Serializer to display React Helmet data in Jest Snapshots


Build Status npm version Code Coverage Mentioned in Awesome Jest

Jest Snapshot serializer to ensure React Helmet side effects are included in component snapshots.


Install preset using npm:

npm install --save-dev jest-serializer-react-helmet

or yarn:

yarn add --dev jest-serializer-react-helmet


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

module.exports = {
  snapshotSerializers: ["jest-serializer-react-helmet"]

or package.json:

  "jest": {
    "snapshotSerializers": ["jest-serializer-react-helmet"]

Related Packages


Copyright 2019 Kepler Sticka-Jones. Licensed ISC

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free