Skip to main content

TestServerOptions

TestServerOptions

Configuration options used to initialize an instance of the TestServer.

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

productsCsvPath

property
string

The path to an optional CSV file containing product data to import.

initialData

property

An object containing non-product data which is used to populate the database.

customerCount

property
number
default:
10

The number of fake Customers to populate into the database.

logging

property
boolean
default:
false

Set this to true to log some information about the database population process.