-
Notifications
You must be signed in to change notification settings - Fork 176
Add unit tests for handling middleware #576
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
Conversation
|
commit: |
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.
I have mixed feelings about this one (kind of the same issue than with the routingHandler )
It's fine for now i guess, we can change it later if needs be
We could add a note at the top to remind us about that
|
|
||
| type MiddlewareLoader = (path: string) => Promise<any>; | ||
| function defaultMiddlewareLoader(path: string) { | ||
| return import(path); |
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.
It needs to be hardcoded here.
What kind of note, and where did you have in mind? |
Something at the top of the test file. |
6180905 to
01103dd
Compare
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.
LGTM Thanks
No description provided.