next-test-api-route-handler
Version:
Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment
113 lines (112 loc) • 4.23 kB
JSON
{
"name": "next-test-api-route-handler",
"version": "5.0.0",
"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"
],
"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 --not-multiversal",
"build:docs": "symbiote build docs --env NODE_NO_WARNINGS=1",
"build:externals": "echo '\nWARNING: this script and the whole concept of so-called \"externals\" is going away soon (to be replaced by a hybridrepo)!\n\n'; EXTERNAL_DELETE_THIS=true NODE_ENV=production-cjs babel external-scripts --extensions .ts --out-dir external-scripts/bin && NODE_ENV=production-cjs babel test/util.ts --extensions .ts --out-dir external-scripts/bin",
"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",
"list-tasks": "symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package",
"prepare": "symbiote project prepare --env NODE_NO_WARNINGS=1",
"release": "npm run build:externals && symbiote 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"
},
"dependencies": {
"@whatwg-node/server": "^0.10.10",
"cookie": "^1.0.2",
"core-js": "^3.44.0"
},
"devDependencies": {
"@-xun/fs": "^2.0.0",
"@-xun/project-fs": "^2.0.5",
"@-xun/run": "^1.1.0",
"@-xun/symbiote": "^4.11.4",
"@octokit/rest": "^22.0.0",
"@types/find-package-json": "^1.2.6",
"@types/semver": "^7.7.0",
"find-package-json": "^1.2.0",
"mongodb": "^6.17.0",
"msw": "^2.10.4",
"rejoinder": "^2.0.2",
"semver": "^7.7.2"
},
"peerDependencies": {
"next": ">=9"
},
"engines": {
"node": "^20.18.0 || >=22.12.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}