UNPKG

@testing-library/react-hooks

Version:

Simple and complete React hooks testing utilities that encourage good testing practices.

103 lines (102 loc) 2.59 kB
{ "name": "@testing-library/react-hooks", "version": "3.1.0", "description": "Simple and complete React hooks testing utilities that encourage good testing practices.", "main": "lib/index.js", "keywords": [ "testing", "react", "hooks", "unit", "integration" ], "files": [ "lib", "src", "README.md", "LICENSE.md" ], "author": "Michael Peyper <mpeyper7@gmail.com>", "repository": { "type": "git", "url": "https://github.com/testing-library/react-hooks-testing-library.git" }, "license": "MIT", "scripts": { "prepare": "npm run build", "build": "babel --out-dir lib src", "format": "prettier-eslint --write \"**/*.{js,ts,json,yml,md,mdx}\"", "coverage": "codecov", "test": "jest", "test:ci": "npm run test && npm run coverage", "docs:dev": "docz dev", "docs:build": "docz build", "contributors:add": "all-contributors add" }, "dependencies": { "@babel/runtime": "^7.5.4", "@types/testing-library__react-hooks": "^2.0.0" }, "devDependencies": { "@babel/cli": "7.6.4", "@babel/core": "7.6.4", "@babel/plugin-proposal-object-rest-spread": "7.6.2", "@babel/plugin-transform-modules-commonjs": "7.6.0", "@babel/plugin-transform-runtime": "7.6.2", "@babel/preset-env": "7.6.3", "@babel/preset-react": "7.6.3", "all-contributors-cli": "6.9.1", "babel-eslint": "10.0.3", "babel-plugin-module-resolver": "3.2.0", "codecov": "3.6.1", "docz": "1.3.2", "docz-theme-default": "1.2.0", "eslint": "6.5.1", "eslint-config-prettier": "6.4.0", "eslint-plugin-prettier": "3.1.1", "husky": "3.0.9", "jest": "24.9.0", "lint-staged": "9.4.2", "prettier": "1.18.2", "prettier-eslint": "9.0.0", "prettier-eslint-cli": "5.0.0", "react": "16.10.2", "react-test-renderer": "16.10.2" }, "peerDependencies": { "react": ">=16.9.0", "react-test-renderer": ">=16.9.0" }, "jest": { "collectCoverage": true, "coverageDirectory": "./coverage/", "collectCoverageFrom": [ "**/src/**" ], "testURL": "http://localhost/" }, "prettier": { "printWidth": 100, "semi": false, "singleQuote": true, "arrowParens": "always", "proseWrap": "always" }, "eslintConfig": { "extends": [ "plugin:prettier/recommended" ], "parser": "babel-eslint" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,ts,json,yml,md,mdx}": [ "prettier-eslint --write", "git add" ] } }