🚨 Announcing Vendure v2 Beta

TestServerOptions

TestServerOptions

Package: @vendure/testing File: types.ts

Configuration options used to initialize an instance of the TestServer.

Signature

interface TestServerOptions {
  productsCsvPath: string;
  initialData: InitialData;
  customerCount?: number;
  logging?: boolean;
}

Members

productsCsvPath

property
type:
string
The path to a CSV file containing product data to import.

initialData

property
type:
InitialData
An object containing non-product data which is used to populate the database.

customerCount

property
type:
number
default:
10
The number of fake Customers to populate into the database.

logging

property
type:
boolean
default:
false
Set this to true to log some information about the database population process.