Skip to main content

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;
}

server

property

A Vendure server instance against which GraphQL requests can be made.

adminClient

A GraphQL client configured for the Admin API.

shopClient

A GraphQL client configured for the Shop API.