enzyme-to-json

v3.6.2
convert enzyme wrapper to a format compatible with Jest snapshot
enzyme jest snapshot wrapper pretty-format cheerio convert testing unit and 2 more...

build

babel src -d ./

clean

rm *.js

prepublishOnly

yarn build

lint

eslint src tests/core && yarn format-check

format

prettier src/**/*.js tests/core/*.js tests/core/**/*.js --write --single-quote --trailing-comma all --no-bracket-spacing

format-check

prettier-check src/**/*.js tests/core/*.js tests/core/**/*.js --write --single-quote --trailing-comma all --no-bracket-spacing

test

yarn lint && yarn test-core

test-core

NODE_ENV=test jest --coverage
npm i enzyme-to-json

Metadata

  • MIT
  • >=6.0.0
  • Adrien Antoine
  • released 4/8/2021

Downloads