describe('Server - e2e', () => { let stop, graphql; beforeEach(async () => { const testServer = await startTestServer(server); stop = testServer.stop; graphql = testServer.graphql; }); afterEach(() => stop()); it('gets list of launches', async () => { const res = await toPromise( graphql({ query: LAUNCH_LIST_QUERY, variables: { pageSize: 1, after: '1517949900' }, }), ); expect(res).toMatchSnapshot(); }); it('gets a single launch', async () => { const res = await toPromise( graphql({ query: GET_LAUNCH, variables: { id: 30 } }), ); expect(res).toMatchSnapshot(); }); });
describe('Server - e2e', () => { let stop, graphql; beforeEach(async () => { const testServer = await startTestServer(server); stop = testServer.stop; graphql = testServer.graphql; }); afterEach(() => stop()); it('gets list of launches', async () => { const res = await toPromise( graphql({ query: LAUNCH_LIST_QUERY, variables: { pageSize: 1, after: '1517949900' }, }), ); expect(res).toMatchSnapshot(); }); it('gets a single launch', async () => { const res = await toPromise( graphql({ query: GET_LAUNCH, variables: { id: 30 } }), ); expect(res).toMatchSnapshot(); }); });
describe('Server - e2e', () => { let stop, graphql; beforeEach(async () => { const testServer = await startTestServer(server); stop = testServer.stop; graphql = testServer.graphql; }); afterEach(() => stop()); it('gets list of launches', async () => { const res = await toPromise( graphql({ query: LAUNCH_LIST_QUERY, variables: { pageSize: 1, after: '1517949900' }, }), ); expect(res).toMatchSnapshot(); }); it('gets a single launch', async () => { const res = await toPromise( graphql({ query: GET_LAUNCH, variables: { id: 30 } }), ); expect(res).toMatchSnapshot(); }); });
describe('Server - e2e', () => { let stop, graphql; beforeEach(async () => { const testServer = await startTestServer(server); stop = testServer.stop; graphql = testServer.graphql; }); afterEach(() => stop()); it('gets list of launches', async () => { const res = await toPromise( graphql({ query: LAUNCH_LIST_QUERY, variables: { pageSize: 1, after: '1517949900' }, }), ); expect(res).toMatchSnapshot(); }); it('gets a single launch', async () => { const res = await toPromise( graphql({ query: GET_LAUNCH, variables: { id: 30 } }), ); expect(res).toMatchSnapshot(); }); });