Skip to content
Snippets Groups Projects
Commit 47730847 authored by tom.ryser's avatar tom.ryser :carousel_horse:
Browse files

push after gitignore

parent c68260ca
No related branches found
No related tags found
No related merge requests found
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
};
This diff is collapsed.
......@@ -19,7 +19,8 @@
"database:deploy:prod": "npm run database:migrate:deploy && npm run database:seed:prod",
"start:dev": "npm run prisma:generate && npx dotenvx run -- npx nodemon src/app.ts",
"start:prod": "npm run build && npx dotenvx run -- NODE_ENV=production npx node dist/src/app.js",
"clean": "rm -R dist/*"
"clean": "rm -R dist/*",
"test": "jest"
},
"prisma": {
"seed": "node dist/prisma/seed"
......@@ -45,14 +46,17 @@
"@types/bcryptjs": "^2.4.6",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.6",
"@types/morgan": "^1.9.9",
"@types/multer": "^1.4.11",
"@types/node": "^20.12.7",
"jest": "^29.7.0",
"node": "^20.12.2",
"nodemon": "^3.1.0",
"npm": "^10.5.2",
"prisma": "^6.3.1",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.2",
"tsx": "^4.7.2",
"typescript": "^5.4.5"
......
export function sum(a: number, b: number): number {
return a + b;
}
require("dotenv").config();
import { sum } from "../src/sum";
test("adds 1 + 2 to equal 3", () => {
expect(sum(1, 2)).toBe(3);
});
......@@ -3,7 +3,7 @@
"baseUrl" : ".",
"outDir" : "dist",
"strict" : true,
"target" : "ES2022",
"target" : "ES6",
"module" : "commonjs",
"sourceMap" : true,
"noImplicitAny" : true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment