UNPKG

next-test-api-route-handler

Version:

Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment

118 lines (117 loc) 4.17 kB
{ "name": "next-test-api-route-handler", "version": "5.0.3", "description": "Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment", "keywords": [ "api", "route", "next", "unit", "test", "endpoint", "testing", "nextjs", "next.js", "handler", "request", "response", "jest" ], "homepage": "https://github.com/Xunnamius/next-test-api-route-handler#readme", "bugs": { "url": "https://github.com/Xunnamius/next-test-api-route-handler/issues" }, "repository": { "type": "git", "url": "git+https://github.com/Xunnamius/next-test-api-route-handler.git" }, "license": "MIT", "author": "Xunnamius", "sideEffects": false, "type": "commonjs", "exports": { ".": { "types": "./dist/src/index.d.ts", "default": "./dist/src/index.js" }, "./package": "./package.json", "./package.json": "./package.json" }, "typesVersions": { "*": { "index": [ "dist/src/index.d.ts" ], "package": [ "package.json" ] } }, "files": [ "/dist", "/LICENSE", "/package.json", "/README.md" ], "workspaces": [ "packages/*", "!packages/*.ignore*", "!packages/ignore.*" ], "scripts": { "build": "npm run build:dist --", "build:changelog": "symbiote build changelog --env NODE_NO_WARNINGS=1", "build:dist": "symbiote build distributables --env NODE_NO_WARNINGS=1 --multiversal", "build:docs": "symbiote build docs --env NODE_NO_WARNINGS=1", "build:topological": "symbiote project topology --run build --env NODE_NO_WARNINGS=1", "clean": "symbiote clean --env NODE_NO_WARNINGS=1", "format": "symbiote format --env NODE_NO_WARNINGS=1 --hush", "info": "symbiote project info --env NODE_NO_WARNINGS=1", "lint": "npm run lint:package --", "lint:package": "symbiote lint --env NODE_NO_WARNINGS=1 --hush", "lint:packages": "symbiote lint --env NODE_NO_WARNINGS=1 --hush --scope unlimited", "lint:project": "symbiote project lint --env NODE_NO_WARNINGS=1", "lint:topological": "symbiote project topology --run lint --env NODE_NO_WARNINGS=1", "list-tasks": "symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package", "prepare": "symbiote project prepare --env NODE_NO_WARNINGS=1", "release": "symbiote release --env NODE_NO_WARNINGS=1", "release:topological": "symbiote project topology --run release --env NODE_NO_WARNINGS=1", "renovate": "symbiote project renovate --env NODE_NO_WARNINGS=1 --github-reconfigure-repo --regenerate-assets --assets-preset lib", "renovate:aliases": "symbiote project renovate --env NODE_NO_WARNINGS=1 --regenerate-assets --assets-preset lib --only-aliases", "start": "symbiote start --env NODE_NO_WARNINGS=1 --", "test": "npm run test:package:unit --", "test:package:all": "symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --coverage", "test:package:e2e": "symbiote test --env NODE_NO_WARNINGS=1 --tests e2e-local", "test:package:integration": "symbiote test --env NODE_NO_WARNINGS=1 --tests integration", "test:package:unit": "symbiote test --env NODE_NO_WARNINGS=1 --tests unit type", "test:packages:all": "symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --scope unlimited --coverage", "test:packages:all:unit": "symbiote test --env NODE_NO_WARNINGS=1 --tests unit type --scope unlimited --coverage", "test:topological": "symbiote project topology --run test --env NODE_NO_WARNINGS=1" }, "overrides": { "jest-resolve": "$jest-resolve" }, "dependencies": { "@whatwg-node/server": "^0.10.12", "cookie": "^1.0.2", "core-js": "^3.45.1" }, "devDependencies": { "@-xun/fs": "^2.0.0", "@-xun/project-fs": "^2.0.6", "@-xun/symbiote": "^4.15.3", "jest-resolve": "npm:jest-resolve-no-esm@31", "msw": "^2.11.1", "rejoinder": "^2.1.0" }, "peerDependencies": { "next": ">=9" }, "engines": { "node": "^20.18.0 || >=22.12.0" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" } }