From 6fc508589af0d231746bfa0aa5235fd6a90d6846 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 17 Aug 2020 01:27:05 -0700 Subject: [PATCH] don't do Honeycomb in test env --- src/server/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/server/index.js b/src/server/index.js index 60abbc8..b0c9024 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -676,7 +676,12 @@ const svgLogging = { }; const schema = makeExecutableSchema({ typeDefs, resolvers }); -addBeelineToSchema(schema); +const plugins = [svgLogging]; + +if (process.env["NODE_ENV"] !== "test") { + addBeelineToSchema(schema); + plugins.push(beelinePlugin); +} const config = { schema, @@ -698,7 +703,7 @@ const config = { }; }, - plugins: [svgLogging, beelinePlugin], + plugins, // Enable Playground in production :) introspection: true,