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
[now dev] Support JSON and HTML error responses #2677
Conversation
Codecov Report
@@ Coverage Diff @@
## canary #2677 +/- ##
=========================================
+ Coverage 8.14% 8.24% +0.09%
=========================================
Files 259 260 +1
Lines 10470 10516 +46
Branches 1328 1339 +11
=========================================
+ Hits 853 867 +14
- Misses 9559 9591 +32
Partials 58 58
Continue to review full report at Codecov.
|
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.
Can we add integration tests to check if the correct pages are returned?
* [now dev] Support JSON and HTML error responses Closes #2609. * Compile templates for unit tests in CircleCI * Update `ts-node` to v8.3.0 * Convert doT.js compiled templates to TypeScript * Compile templates for lint tests in CircleCI * Print convert time * Add 502 error template * Remove `message` param from `sendError()` * Prettier * Add 404 tests * Fix test
Using the same templates as the production proxy uses, but converted to doT.js format.
Closes #2609.