From 4c66887360375c5bfed7449c4e9cbc25db989285 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Wed, 15 Apr 2020 00:57:33 -0400 Subject: [PATCH] Explicitly check for NODE_ENV 'test' for mounting testing endpoints --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 068980a008..601bfc1281 100644 --- a/src/index.js +++ b/src/index.js @@ -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(); }