Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Segaran committed Jun 4, 2020
1 parent 884530c commit 7a7dbdd
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/apollo-engine-reporting/src/__tests__/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ describe('schema reporting', () => {

it('starts reporting if enabled', async () => {
const pluginInstance = plugin(
{
experimental_schemaReporting: true,
},
{},
addTrace,
{
startSchemaReporting,
executableSchemaIdGenerator,
},
schemaReport: true,
}
);

await pluginTestHarness({
Expand Down Expand Up @@ -97,13 +96,13 @@ describe('schema reporting', () => {
it('uses the override schema', async () => {
const pluginInstance = plugin(
{
experimental_schemaReporting: true,
experimental_overrideReportedSchema: typeDefs,
},
addTrace,
{
startSchemaReporting,
executableSchemaIdGenerator,
schemaReport: true,
},
);

Expand Down Expand Up @@ -145,14 +144,13 @@ describe('schema reporting', () => {

it('uses the same executable schema id for metric reporting', async () => {
const pluginInstance = plugin(
{
experimental_schemaReporting: true,
},
{},
addTrace,
{
startSchemaReporting,
executableSchemaIdGenerator,
},
schemaReport: true,
}
);

await pluginTestHarness({
Expand Down

0 comments on commit 7a7dbdd

Please sign in to comment.