enzyme
Version:
JavaScript Testing utilities for React
74 lines (73 loc) • 2.65 kB
JSON
{
"name": "enzyme",
"version": "1.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/**",
"test": "mocha --compilers js:babel/register --recursive src/**/__tests__/*.js",
"check": "npm run lint && npm run test:all",
"build": "babel src --out-dir build",
"test:watch": "mocha --compilers js:babel/register --recursive src/**/__tests__/*.js --watch",
"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": "istanbul cover _mocha -- --compilers js:babel/register --recursive src/**/__tests__/*.js"
},
"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.19.0",
"sinon": "^1.15.4",
"underscore": "^1.8.3"
},
"devDependencies": {
"babel": "^5.8.21",
"babel-eslint": "^4.1.4",
"chai": "^3.2.0",
"coveralls": "^2.11.4",
"eslint": "^1.9.0",
"eslint-config-airbnb": "^0.1.0",
"eslint-plugin-react": "^3.8.0",
"gitbook-cli": "^1.0.0",
"istanbul": "^0.4.0",
"mocha": "^2.2.5",
"rimraf": "^2.4.3"
},
"peerDependencies": {
"react": "0.13.x || 0.14.x"
},
"optionalDependencies": {
"jsdom": "^6.1.0",
"mocha-jsdom": "^1.0.0"
}
}