From 78a63b91a6d03aa7203c54357c5ab466026ec50b Mon Sep 17 00:00:00 2001 From: j Date: Sun, 17 Mar 2024 14:06:41 -0400 Subject: [PATCH] Supporting Testing Configuration --- package.json | 5 +++-- tsconfig.tests.json | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 tsconfig.tests.json diff --git a/package.json b/package.json index 44e0d2d..579c4d0 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "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", - "start": "node dist/index.js" + "start": "node dist/index.js", + "test": "tsc -p tsconfig.tests.json" } -} +} \ No newline at end of file diff --git a/tsconfig.tests.json b/tsconfig.tests.json new file mode 100644 index 0000000..8dd932a --- /dev/null +++ b/tsconfig.tests.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist-tests", + "rootDir": "./" + }, + "include": [ + "tests/**/*" + ] +} \ No newline at end of file