UNPKG

enzyme

Version:

JavaScript Testing utilities for React

85 lines (84 loc) 3.23 kB
{ "name": "enzyme", "version": "2.0.0", "description": "JavaScript Testing utilities for React", "main": "build", "scripts": { "prepublish": "npm run clean && npm run build", "preversion": "npm run clean && npm run check", "postversion": "git push && git push --tags && npm run clean && npm run docs:publish", "version": "npm run build", "clean": "rimraf build", "lint": "eslint src/**", "check": "npm run lint && npm run test:all", "build": "babel src --out-dir build", "test": "npm run lint && npm run test:only", "test:only": "mocha --require withDom.js --compilers js:babel-core/register --recursive test/*.js", "test:single": "mocha --require withDom.js --compilers js:babel-core/register --watch", "test:watch": "mocha --require withDom.js --compilers js:babel-core/register --recursive test/*.js --watch", "test:env": "sh ./example-test.sh", "test:all": "npm run react:13 && npm test && npm run react:14 && npm test", "react:clean": "rimraf node_modules/react node_modules/react-dom node_modules/react-addons-test-utils", "react:13": "npm run react:clean && npm i react@0.13", "react:14": "npm run react:clean && npm i react@0.14 react-dom@0.14 react-addons-test-utils@0.14", "docs:clean": "rimraf _book", "docs:prepare": "gitbook install", "docs:build": "npm run docs:prepare && gitbook build", "docs:watch": "npm run docs:prepare && gitbook serve", "docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git fetch https://github.com/airbnb/enzyme.git gh-pages && git checkout -b gh-pages && git add . && git commit -am 'update book' && git push https://github.com/airbnb/enzyme.git gh-pages --force", "travis": "babel-node ./node_modules/.bin/istanbul cover --report html _mocha -- --require withDom.js test --recursive" }, "repository": { "type": "git", "url": "https://github.com/airbnb/enzyme.git" }, "keywords": [ "javascript", "shallow rendering", "shallowRender", "test", "reactjs", "react", "flux", "testing", "test utils", "assertion helpers", "tdd", "mocha" ], "author": "Leland Richardson <leland.richardson@airbnb.com>", "license": "MIT", "dependencies": { "cheerio": "^0.20.0", "is-subset": "^0.1.1", "object.assign": "^4.0.3", "object.values": "^1.0.3", "underscore": "^1.8.3" }, "devDependencies": { "babel-cli": "^6.3.17", "babel-core": "^6.3.21", "babel-eslint": "^4.1.8", "babel-preset-airbnb": "^1.0.1", "babel-register": "^6.3.13", "chai": "^3.5.0", "coveralls": "^2.11.6", "enzyme-example-jest": "^0.1.0", "enzyme-example-karma": "^0.1.1", "enzyme-example-karma-webpack": "^0.1.3", "enzyme-example-mocha": "^0.1.0", "enzyme-example-react-native": "^0.1.0", "eslint": "^1.10.3", "eslint-config-airbnb": "^4.0.0", "eslint-plugin-react": "^3.16.1", "gitbook-cli": "^1.0.1", "istanbul": "^1.0.0-alpha.2", "jsdom": "^6.1.0", "mocha": "^2.4.5", "rimraf": "^2.5.1", "sinon": "^1.15.4" }, "peerDependencies": { "react": "0.13.x || 0.14.x" } }