Supporting Testing Configuration

pull/1/head
j 2024-03-17 14:06:41 -04:00
parent a17d520eea
commit 78a63b91a6
2 changed files with 13 additions and 2 deletions

View File

@ -18,6 +18,7 @@
}, },
"scripts": { "scripts": {
"build": "tsc && copyfiles -u 3 \"src/db/migrations/*.sql\" dist/db/migrations && copyfiles -u 3 \"src/db/seed/*.sql\" dist/db/seed && copyfiles -u 2 \"src/messages/*.txt\" dist/messages", "build": "tsc && copyfiles -u 3 \"src/db/migrations/*.sql\" dist/db/migrations && copyfiles -u 3 \"src/db/seed/*.sql\" dist/db/seed && copyfiles -u 2 \"src/messages/*.txt\" dist/messages",
"start": "node dist/index.js" "start": "node dist/index.js",
"test": "tsc -p tsconfig.tests.json"
} }
} }

View File

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist-tests",
"rootDir": "./"
},
"include": [
"tests/**/*"
]
}