jest-fetch-mock
Version:
fetch mock for jest
104 lines (103 loc) • 2.31 kB
JSON
{
"name": "jest-fetch-mock",
"version": "4.2.0",
"description": "fetch mock for jest",
"main": "src/index.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./src/index.mjs",
"default": "./src/index.js"
},
"./factory": {
"types": "./types/factory.d.ts",
"import": "./src/factory.mjs",
"default": "./src/factory.js"
},
"./setup": "./src/setup.js",
"./package.json": "./package.json",
"./*": "./*"
},
"scripts": {
"test": "jest && yarn tsc && yarn lint",
"lint": "eslint .",
"tsc": "tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jefflau/jest-fetch-mock.git"
},
"keywords": [
"jest",
"mock",
"fetch"
],
"author": "Jeff Lau <jeff-lau@live.com> (http://jefflau.net/)",
"license": "MIT",
"engines": {
"node": ">=18"
},
"bugs": {
"url": "https://github.com/jefflau/jest-fetch-mock/issues"
},
"homepage": "https://github.com/jefflau/jest-fetch-mock#readme",
"dependencies": {
"cross-fetch": "^3.1.8"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest-environment-jsdom": "^29.7.0",
"@types/node": "^20.11.27",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"regenerator-runtime": "^0.14.1",
"typescript": "^5.4.2"
},
"prettier": {
"semi": false,
"arrowParens": "always",
"editor.formatOnSave": true,
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": "**/*.ts",
"options": {
"semi": true,
"tabWidth": 4,
"singleQuote": false,
"printWidth": 125
}
}
]
},
"jest": {
"automock": false,
"testPathIgnorePatterns": [
"types",
"integration"
],
"setupFiles": [
"./setupJest.js"
],
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.js"
],
"coverageReporters": [
"text-summary"
],
"coverageThreshold": {
"global": {
"statements": 97,
"branches": 94,
"functions": 100,
"lines": 97
}
}
}
}