UNPKG

axios-hooks-mock

Version:

A library that simplifies mocking for axios-hooks, especially when multiple hooks are used together.

80 lines (79 loc) 2.37 kB
{ "name": "axios-hooks-mock", "version": "1.1.0", "description": "A library that simplifies mocking for axios-hooks, especially when multiple hooks are used together.", "main": "dist/index.js", "source": "src/index.ts", "module": "dist/index.m.js", "unpkg": "dist/index.umd.js", "types": "dist/index.d.ts", "scripts": { "build": "rimraf dist && microbundle --external react --globals react=React --strict --no-compress", "format-check": "prettier --check .", "format": "prettier --write .", "test": "jest --passWithNoTests", "test:coverage": "jest --coverage --passWithNoTests", "lint": "eslint ./src --ext .tsx,.ts", "type-check": "tsc --noEmit", "clean-packages": "rimraf node_modules && rimraf package-lock.json" }, "repository": { "type": "git", "url": "git+https://github.com/dkershner6/axios-hooks-mock.git" }, "keywords": [ "axios", "axios-hooks", "testing", "mock", "jest" ], "author": "Derek Kershner", "license": "MIT", "bugs": { "url": "https://github.com/dkershner6/axios-hooks-mock/issues" }, "homepage": "https://github.com/dkershner6/axios-hooks-mock#readme", "devDependencies": { "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "@types/jest": "^26.0.7", "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", "@types/react-router-dom": "^5.1.4", "@typescript-eslint/eslint-plugin": "^3.6.0", "@typescript-eslint/parser": "^3.6.0", "axios": "^0.19.2", "axios-hooks": "^2.1.0", "cross-env": "^7.0.2", "eslint": "^7.4.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-jest": "^23.18.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.18.3", "eslint-plugin-react-hooks": "^2.5.1", "eslint-plugin-testing-library": "^3.3.1", "jest": "^26.1.0", "microbundle": "^0.12.3", "prettier": "^2.0.5", "react": "^16.13.1", "react-dom": "^16.13.1", "rimraf": "^3.0.2", "ts-jest": "^26.1.1", "ts-node": "^8.10.2", "typescript": "^3.9.6" }, "files": [ "dist/*" ], "dependencies": { "querystring": "^0.2.0" }, "peerDependencies": { "react": ">=16.9.0", "axios": "*", "axios-hooks": ">=2.0.0" } }