UNPKG

next-router-mock

Version:
92 lines (91 loc) 3.16 kB
{ "name": "next-router-mock", "version": "1.0.2", "description": "Mock implementation of the Next.js Router", "main": "dist/index", "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./*": { "types": "./dist/*/index.d.ts", "default": "./dist/*/index.js" }, "./package.json": "./package.json" }, "files": [ "dist", "async", "dynamic-routes", "MemoryRouterProvider", "src" ], "scripts": { "checks": "npm run docs && npm run lint && npm run test && npm run build && npm run typecheck && npm run test:integration", "lint": "prettier --list-different src", "lint:fix": "prettier --write src", "docs": "doctoc README.md", "test": "jest", "test:watch": "jest --watch", "test:integration:ci": "npm run test:integration:install && npm run test:integration", "test:integration:install": "(cd test/example-app && npm i); (cd test/next-10 && npm i); (cd test/next-11 && npm i); (cd test/next-12 && npm i); (cd test/next-12.2+ && npm i); (cd test/next-12.latest && npm i); (cd test/next-13 && npm i); (cd test/next-13.5 && npm i)", "test:integration": "npm run build && npm run test:exports && npm run test:example-app && npm run test:next-10 && npm run test:next-11 && npm run test:next-12 && npm run test:next-12.2 && npm run test:next-12.latest && npm run test:next-13 && npm run test:next-13.5", "test:example-app": "cd test/example-app && npm test", "test:exports": "cd test/test-exports && npm test", "test:next-10": "cd test/next-10 && npm test", "test:next-11": "cd test/next-11 && npm test", "test:next-12": "cd test/next-12 && npm test", "test:next-12.2": "cd test/next-12.2+ && npm test", "test:next-12.latest": "cd test/next-12.latest && npm test", "test:next-13": "cd test/next-13 && npm test", "test:next-13.5": "cd test/next-13.5 && npm test", "typecheck": "tsc --noEmit", "build": "npm run clean && tsc --project tsconfig.build.json", "clean": "rimraf dist", "build:watch": "npm run build -- --watch", "prepublishOnly": "npm run build", "preversion": "npm run checks", "prerelease": "npm run build", "release": "changeset publish" }, "repository": { "type": "git", "url": "git+https://github.com/scottrippey/next-router-mock.git" }, "keywords": [ "react", "next", "next.js", "nextjs", "router", "mock", "test", "testing" ], "author": "", "license": "MIT", "bugs": { "url": "https://github.com/scottrippey/next-router-mock/issues" }, "homepage": "https://github.com/scottrippey/next-router-mock#readme", "peerDependencies": { "next": ">=10.0.0", "react": ">=17.0.0" }, "devDependencies": { "@changesets/cli": "^2.26.2", "@testing-library/react": "^13.4.0", "@types/jest": "^26.0.20", "doctoc": "^2.2.0", "jest": "^26.6.3", "next": "^13.5.1", "prettier": "^2.2.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "rimraf": "^3.0.2", "ts-jest": "^26.4.4", "typescript": "^4.9.5" } }