TestServerOptions

TestServerOptions

TestServerOptions

Package: @vendure/testing File: types.ts

Configuration options used to initialize an instance of the TestServer.

Signature

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

Members

dataDir

property
type:
string
The directory in which the populated SQLite database files will be saved. These files are a cache to speed up subsequent runs of e2e tests.

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.