@loopback/docs
Version:
Documentation for LoopBack 4
30 lines (19 loc) • 859 B
Markdown
lang: en
title: 'API docs: testlab.testsandbox._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.testlab.testsandbox._constructor_.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/testlab](./testlab.md) > [TestSandbox](./testlab.testsandbox.md) > [(constructor)](./testlab.testsandbox._constructor_.md)
## TestSandbox._constructor_
Will create a directory if it doesn't already exist. If it exists, you still get an instance of the TestSandbox.
<b>Signature:</b>
```typescript
constructor(path: string);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| path | <code>string</code> | Path of the TestSandbox. If relative (it will be resolved relative to cwd()). |