test-client.ts 378 B

123456789101112
  1. import { SimpleGraphQLClient } from '../mock-data/simple-graphql-client';
  2. import { testConfig } from './config/test-config';
  3. /**
  4. * A GraphQL client for use in e2e tests configured to use the test server endpoint.
  5. */
  6. export class TestClient extends SimpleGraphQLClient {
  7. constructor() {
  8. super(`http://localhost:${testConfig.port}/${testConfig.apiPath}`);
  9. }
  10. }