@jedmao/redux-mock-store
Version:
A mock store for testing your redux async action creators and middleware
145 lines (144 loc) • 3.46 kB
JSON
{
"name": "@jedmao/redux-mock-store",
"version": "3.0.5",
"description": "A mock store for testing your redux async action creators and middleware",
"keywords": [
"react",
"redux",
"mock",
"store",
"thunk",
"test"
],
"main": "dist/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/index.js",
"dist/utils.js",
"dist/index.d.ts",
"dist/utils.d.ts",
"dist/esm/index.js",
"dist/esm/utils.js"
],
"scripts": {
"clean": "rimraf coverage dist *.log* redux-mock-store-*",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prebuild": "rimraf dist",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"precover": "rimraf coverage",
"cover": "jest --coverage",
"pretest": "npm run lint",
"test": "jest --watch",
"commit": "git-cz"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jedmao/redux-mock-store.git"
},
"author": "Jed Mao <jedmao@outlook.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/jedmao/redux-mock-store/issues"
},
"homepage": "https://github.com/jedmao/redux-mock-store#readme",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "tsc --noEmit && npm run cover"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix"
],
"*.{json,md}": [
"prettier --write"
],
"src/**/*.{js,jsx}": [
"git reset"
]
},
"prettier": {
"arrowParens": "avoid",
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.ts"
],
"testEnvironment": "node",
"verbose": true,
"coverageDirectory": "coverage",
"coverageThreshold": {
"global": {
"statements": 100,
"branches": 100,
"lines": 100,
"functions": 100
}
},
"coverageReporters": [
"json",
"lcov"
],
"preset": "ts-jest",
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
},
"release": {
"branch": "master",
"extends": "@jedmao/semantic-release-npm-github-config"
},
"peerDependencies": {
"redux": "^4"
},
"devDependencies": {
"@commitlint/cli": "^8",
"@commitlint/config-conventional": "^8",
"@jedmao/semantic-release-npm-github-config": "^1",
"@testing-library/react": "^10",
"@types/jest": "^25",
"@types/node": "^13",
"@types/react": "^16",
"@types/react-dom": "^16",
"@types/redux": "^3",
"@types/redux-thunk": "^2",
"@typescript-eslint/eslint-plugin": "^2.22",
"@typescript-eslint/parser": "^2.22",
"commitizen": "^4",
"cz-conventional-changelog": "^3",
"eslint": "^6",
"eslint-config-prettier": "^6",
"eslint-plugin-prettier": "^3",
"husky": "^4",
"jest": "^25",
"jest-watch-typeahead": "^0.4",
"lint-staged": "^10",
"prettier": "^2",
"react": "^16",
"react-dom": "^16",
"redux-thunk": "^2",
"rimraf": "^3",
"semantic-release": "^17",
"ts-jest": "^25",
"typescript": "^3.8"
}
}