banatie-service/tests/api/test-package-json-snippet.json

20 lines
552 B
JSON

// package.json additions for tests
{
"scripts": {
"test:api": "tsx tests/api/run-all.ts",
"test:api:basic": "tsx tests/api/01-basic.ts",
"test:api:flows": "tsx tests/api/02-flows.ts",
"test:api:aliases": "tsx tests/api/03-aliases.ts",
"test:api:live": "tsx tests/api/04-live.ts",
"test:api:edge": "tsx tests/api/05-edge-cases.ts"
},
"devDependencies": {
"tsx": "^4.7.0",
"@types/node": "^20.11.0"
}
}
// Note: fetch is built into Node.js 18+, no need for node-fetch
// FormData is also built into Node.js 18+