Explicitly check for NODE_ENV 'test' for mounting testing endpoints

This commit is contained in:
Elliot DeNolf
2020-04-15 00:57:33 -04:00
parent 29e69b0d4d
commit 4c66887360

View File

@@ -60,7 +60,9 @@ class Payload {
passport.authenticate(['jwt', 'anonymous'], { session: false }),
new GraphQL(this.config, this.collections, this.User, this.Upload).init(),
);
}
if (process.env.NODE_ENV === 'test') {
this.testingEndpoints();
}