Skip to content

Commit

Permalink
chore(): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide-Gheri committed Feb 15, 2022
1 parent ea9ac4d commit 07fc647
Showing 1 changed file with 0 additions and 123 deletions.
123 changes: 0 additions & 123 deletions packages/mercurius/tests/e2e/code-first-federation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,126 +167,3 @@ type User @extends @key(fields: "id") {
});
});
});

// describe.skip('Code-first - Federation', () => {
// let app: INestApplication;
//
// beforeEach(async () => {
// const module = await Test.createTestingModule({
// // imports: [ApplicationModule],
// }).compile();
//
// app = module.createNestApplication(new FastifyAdapter());
// await app.init();
// });
//
// it.skip(`should return query result`, async () => {
// const fastifyInstance = app.getHttpAdapter().getInstance();
// await fastifyInstance.ready();
//
// const response = await fastifyInstance.graphql(`
// {
// _service {
// sdl
// }
// }
// `);
// expect(response.data).toEqual({
// _service: {
// sdl: `interface IRecipe {
// id: ID!
// title: String!
// externalField: String! @external
// }
//
// type Post @key(fields: \"id\") {
// id: ID!
// title: String!
// authorId: Int!
// }
//
// type User @extends @key(fields: \"id\") {
// id: ID! @external
// posts: [Post!]!
// }
//
// type Recipe implements IRecipe {
// id: ID!
// title: String!
// externalField: String! @external
// description: String!
// }
//
// type Query {
// findPost(id: Float!): Post!
// getPosts: [Post!]!
// search: [FederationSearchResultUnion!]! @deprecated(reason: \"test\")
// recipe: IRecipe!
// }
//
// \"\"\"Search result description\"\"\"
// union FederationSearchResultUnion = Post | User
// `,
// },
// });
// });
//
// it('should return the search result', async () => {
// const fastifyInstance = app.getHttpAdapter().getInstance();
// await fastifyInstance.ready();
//
// const response = await fastifyInstance.graphql(`
// {
// search {
// ... on Post {
// title
// }
// ... on User {
// id
// }
// __typename
// }
// }
// `);
// expect(response.data).toEqual({
// search: [
// {
// id: '1',
// __typename: 'User',
// },
// {
// title: 'lorem ipsum',
// __typename: 'Post',
// },
// ],
// });
// });
//
// it(`should return query result`, async () => {
// const fastifyInstance = app.getHttpAdapter().getInstance();
// await fastifyInstance.ready();
//
// const response = await fastifyInstance.graphql(`
// {
// recipe {
// id
// title
// ... on Recipe {
// description
// }
// }
// }
// `);
// expect(response.data).toEqual({
// recipe: {
// id: '1',
// title: 'Recipe',
// description: 'Interface description',
// },
// });
// });
//
// afterEach(async () => {
// await app.close();
// });
// });

0 comments on commit 07fc647

Please sign in to comment.