refactor: migrate from node:http to Express with Express.js tests
All checks were successful
/ checks (push) Successful in 9s
/ deploy (push) Successful in 7s

This commit is contained in:
Noah Holt 2026-08-10 23:03:21 -05:00
parent 6dd9c6e6ee
commit 1365bd7644
6 changed files with 2391 additions and 38 deletions

View file

@ -6,8 +6,8 @@
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"test": "npm run build && node --test dist/index.test.js",
"start": "node dist/bin/server.js",
"test": "vitest run",
"lint": "eslint . && tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check ."
@ -15,13 +15,20 @@
"engines": {
"node": ">=22"
},
"dependencies": {
"express": "^5.2.0"
},
"devDependencies": {
"typescript": "^5.6.0",
"@types/node": "^22.0.0",
"eslint": "^9.13.0",
"typescript-eslint": "^8.15.0",
"prettier": "^3.3.3",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0"
"@commitlint/config-conventional": "^19.5.0",
"@types/express": "^5.0.0",
"@types/node": "^22.0.0",
"@types/supertest": "^7.2.1",
"eslint": "^9.13.0",
"prettier": "^3.3.3",
"supertest": "^7.2.2",
"typescript": "^5.6.0",
"typescript-eslint": "^8.15.0",
"vitest": "^4.1.10"
}
}