TestEnvironment

TestEnvironment

TestEnvironment

The return value of createTestEnvironment, containing the test server and clients for the Shop API and Admin API.

Signature

interface TestEnvironment {
  server: TestServer;
  adminClient: SimpleGraphQLClient;
  shopClient: SimpleGraphQLClient;
}

Members

server

property
type:
TestServer
A Vendure server instance against which GraphQL requests can be made.

adminClient

property
A GraphQL client configured for the Admin API.

shopClient

property
A GraphQL client configured for the Shop API.