Compare commits
2 Commits
a17d520eea
...
bf7a7a9680
Author | SHA1 | Date |
---|---|---|
j | bf7a7a9680 | |
j | 78a63b91a6 |
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist-tests",
|
||||
"rootDir": "./"
|
||||
},
|
||||
"include": [
|
||||
"tests/**/*"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue