-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration test #25
Integration test #25
Conversation
@@ -8,7 +8,7 @@ | |||
"scripts": { | |||
"crawl": "node ./cli/crawl-cli", | |||
"test": "npm run lint && tsc && npm run unit", | |||
"unit": "find . -name \"*.test.js\" -not -path \"./node_modules/*\" -exec node {} \\;", | |||
"unit": "node ./tests/runTests.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some test failures didn't cause the whole testing to fail, so I had to write my own small runner to work around this.
I guess, at some point, I should consider just using one of the existing test runners and don't try to, yet again, roll out my own math library.
@@ -20,7 +20,7 @@ | |||
"test" | |||
], | |||
"engines": { | |||
"node": ">=10.0" | |||
"node": ">=10.17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unhandled-rejections=strict
that allows us to throw when unhandled promise rejection happens is only available since 10.17
👍 thanks for adding this |
|
Thanks for double-checking @loco22loco! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crawl-cli
Adds one simple integration test that visits multiple known websites and verifies collected data.
I confirmed that this test would have prevented #24 :