Adds jest, ts-jest, ts-node, and @types/jest as devDependencies and creates jest.config.ts with the ts-jest preset. `npm test` exits 0 with no test files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
627 B
JSON
29 lines
627 B
JSON
{
|
|
"name": "word-counter-api",
|
|
"version": "1.0.0",
|
|
"description": "HTTP API that counts words in text input",
|
|
"main": "dist/server.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/server.js",
|
|
"dev": "tsx watch src/server.ts",
|
|
"test": "jest"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"express": "^4.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.0",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^22.0.0",
|
|
"jest": "^29.7.0",
|
|
"ts-jest": "^29.4.11",
|
|
"ts-node": "^10.9.2",
|
|
"tsx": "^4.0.0",
|
|
"typescript": "^5.0.0"
|
|
}
|
|
}
|