UNPKG

@render-with/react-router

Version:

Render decorators for components under test that require a React Router or Routes.

128 lines (127 loc) 3.58 kB
{ "name": "@render-with/react-router", "version": "5.0.0", "description": "Render decorators for components under test that require a React Router or Routes.", "keywords": [ "testing", "react", "ui", "dom", "jsdom", "unit", "integration", "functional", "decorator", "wrapper", "provider", "router", "route", "routing", "path", "location", "history", "initialEntries", "initialIndex", "navigation", "nav", "breadcrump", "useNavigate", "useLocation", "query", "params" ], "author": "cultivate GmbH (https://cultivate.software)", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/cultivate-software/render-with-react-router.git" }, "bugs": { "url": "https://github.com/cultivate-software/render-with-react-router/issues" }, "homepage": "https://github.com/cultivate-software/render-with-react-router#readme", "main": "dist/index.js", "types": "types/index.d.ts", "files": [ "dist/index.js", "types/*.d.ts" ], "scripts": { "uninstall": "rm package-lock.json; rm -rf ./node_modules", "reinstall": "npm run uninstall; npm install", "lint:basic": "EXTEND_ESLINT=true eslint --ext=js,jsx --max-warnings=0 --ignore-path .gitignore", "lint": "npm run lint:basic -- --cache . || true", "lint:filter": "npm run lint:basic -- --cache", "lint:fix": "npm run lint:basic -- --cache --fix . || true", "lint:ci": "npm run lint:basic -- .", "test": "jest", "test:filter": "jest --watchAll", "test:watch": "jest --watchAll", "cover": "jest --coverage || true && make-coverage-badge --output-path './docs/coverage-badge.svg'", "cover:open": "npm run cover; npm run cover:open:current", "cover:open:current": "open-cli ./coverage/lcov-report/index.html", "cover:ci": "jest --coverage && make-coverage-badge --output-path './docs/coverage-badge.svg'", "build": "babel src -d dist", "release": "semantic-release" }, "engines": { "node": "^18.20.0 || >=20.0.0" }, "peerDependencies": { "@render-with/decorators": "^5.0.0", "prop-types": "^15.8.1", "react-router-dom": "^6.8.1" }, "devDependencies": { "@babel/cli": "7.24.5", "@babel/core": "7.24.5", "@babel/node": "7.23.9", "@babel/preset-env": "7.24.5", "@babel/preset-react": "7.24.1", "@render-with/decorators": "4.0.0", "@semantic-release/git": "10.0.1", "@testing-library/jest-dom": "6.4.5", "@testing-library/react": "15.0.7", "@testing-library/user-event": "14.5.2", "eslint-plugin-import": "2.29.1", "eslint-plugin-jest": "28.5.0", "eslint-plugin-jest-dom": "5.4.0", "eslint-plugin-react": "7.34.1", "eslint-plugin-testing-library": "6.2.2", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "make-coverage-badge": "1.2.0", "open-cli": "8.0.0", "prop-types": "15.8.1", "react-router-dom": "6.23.0", "semantic-release": "22.0.12" }, "publishConfig": { "access": "public" }, "jest": { "coveragePathIgnorePatterns": [ "<rootDir>/dist" ], "coverageReporters": [ "json-summary", "lcov", "text" ], "coverageThreshold": { "global": { "branches": 100, "functions": 100, "lines": 100, "statements": 100 } }, "modulePathIgnorePatterns": [ "<rootDir>/dist" ], "setupFilesAfterEnv": [ "<rootDir>/src/setupTests.js" ], "testEnvironment": "jsdom" } }