Compare commits

..

2 Commits

Author SHA1 Message Date
j bf7a7a9680 Inital commit of test file 2024-03-17 14:11:00 -04:00
j 78a63b91a6 Supporting Testing Configuration 2024-03-17 14:06:41 -04:00
3 changed files with 23 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 @@
import { CommentFetcher } from "../../src/rdrama/services/CommentFetcher";
main();
async function main(): Promise<void> {
let maxPages = 5
for (let page = 1; page <= maxPages; page++) {
const newComments = await CommentFetcher.fetchComments(page)
}
}

View File

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