mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00
Add comment in code about reasoning behind #921.
It's probably helpful for posterity to leave some additional color in the code to avoid the possibilit of someone inadvertently changing it without considering the indirect possibilities. cc @daffl (thanks!) Ref: https://github.com/apollographql/apollo-server/pull/921 Ref: https://github.com/expressjs/express/issues/3473
This commit is contained in:
parent
ff154828e7
commit
b8ab085aff
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ function createApp(options: CreateAppOptions = {}) {
|
|||
}
|
||||
|
||||
describe('graphqlRestify', () => {
|
||||
// As was reported in https://github.com/apollographql/apollo-server/pull/921,
|
||||
// Restify monkey-patches Node internals, which can have adverse affects on
|
||||
// other environmental participants like Express. Therefore, restify is being
|
||||
// dynamically loaded, rather than imported at top-level.
|
||||
before(async () => {
|
||||
const restifyApollo = await import('./restifyApollo');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue