UNPKG

vue-router-mock

Version:

Easily test your components by mocking the router

106 lines (105 loc) 2.58 kB
{ "$schema": "https://json.schemastore.org/package", "name": "vue-router-mock", "packageManager": "pnpm@10.14.0", "version": "2.0.0", "description": "Easily test your components by mocking the router", "main": "./dist/index.js", "module": "./dist/index.js", "type": "module", "types": "./dist/index.d.ts", "exports": "./dist/index.js", "sideEffects": false, "author": { "name": "Eduardo San Martin Morote", "email": "posva13@gmail.com" }, "scripts": { "build": "tsdown", "release": "publie", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1", "lint": "prettier -c --parser typescript \"{src,__tests__,e2e}/**/*.[jt]s?(x)\"", "lint:fix": "pnpm run lint --write", "test:types": "tsc --build tsconfig.json", "test:unit": "vitest", "test": "pnpm run test:types && pnpm run test:unit run --coverage && pnpm run build", "prepare": "simple-git-hooks" }, "files": [ "./dist", "LICENSE", "README.md" ], "keywords": [ "vue", "router", "mock", "spy", "stub", "jest", "test", "vue-router" ], "license": "MIT", "devDependencies": { "@types/jest": "^30.0.0", "@types/sinon": "^17.0.4", "@vitest/coverage-v8": "^3.2.4", "@vue/test-utils": "^2.4.6", "chalk": "^5.5.0", "conventional-changelog-cli": "^5.0.0", "enquirer": "^2.4.1", "execa": "^9.6.0", "happy-dom": "^18.0.1", "lint-staged": "^16.1.4", "minimist": "^1.2.8", "prettier": "^3.6.2", "publie": "^0.0.2", "semver": "^7.7.2", "simple-git-hooks": "^2.13.1", "tsdown": "^0.13.2", "typescript": "^5.9.2", "vitest": "^3.2.4", "vue": "^3.5.18", "vue-router": "^4.5.1" }, "simple-git-hooks": { "pre-commit": "pnpm lint-staged", "commit-msg": "node scripts/verifyCommit.mjs" }, "lint-staged": { "*.{js,mjs,json,cjs}": [ "prettier --write" ], "*.ts?(x)": [ "prettier --parser=typescript --write" ] }, "size-limit": [ { "path": "size-checks/basic.js", "ignore": [ "vue", "@vue/test-utils" ] } ], "peerDependencies": { "vue": "^3.2.23", "vue-router": "^4.0.12" }, "repository": { "type": "git", "url": "git+https://github.com/posva/vue-router-mock.git" }, "bugs": { "url": "https://github.com/posva/vue-router-mock/issues" }, "homepage": "https://github.com/posva/vue-router-mock#readme", "pnpm": { "onlyBuiltDependencies": [ "esbuild", "simple-git-hooks" ] } }