don't do Honeycomb in test env
This commit is contained in:
parent
f7997b4dc9
commit
6fc508589a
1 changed files with 7 additions and 2 deletions
|
@ -676,7 +676,12 @@ const svgLogging = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const schema = makeExecutableSchema({ typeDefs, resolvers });
|
const schema = makeExecutableSchema({ typeDefs, resolvers });
|
||||||
addBeelineToSchema(schema);
|
const plugins = [svgLogging];
|
||||||
|
|
||||||
|
if (process.env["NODE_ENV"] !== "test") {
|
||||||
|
addBeelineToSchema(schema);
|
||||||
|
plugins.push(beelinePlugin);
|
||||||
|
}
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
schema,
|
schema,
|
||||||
|
@ -698,7 +703,7 @@ const config = {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [svgLogging, beelinePlugin],
|
plugins,
|
||||||
|
|
||||||
// Enable Playground in production :)
|
// Enable Playground in production :)
|
||||||
introspection: true,
|
introspection: true,
|
||||||
|
|
Loading…
Reference in a new issue