Page Contents

Home > @loopback/testlab > TestSandbox > (constructor)

TestSandbox.constructor

Will create a directory if it doesn’t already exist. If it exists, you still get an instance of the TestSandbox.

Signature:

constructor(path: string);

Parameters

Parameter Type Description
path string Path of the TestSandbox. If relative (it will be resolved relative to cwd()).