@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
26 lines (17 loc) • 1.07 kB
Markdown
---
lang: en
title: 'API docs: testlab.testsandboxoptions.subdir'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/testlab
permalink: /doc/en/lb4/apidocs.testlab.testsandboxoptions.subdir.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/testlab](./testlab.md) > [TestSandboxOptions](./testlab.testsandboxoptions.md) > [subdir](./testlab.testsandboxoptions.subdir.md)
## TestSandboxOptions.subdir property
The `subdir` controls if/how the sandbox creates a subdirectory under the root path. It has one of the following values:
- `true`<!-- -->: Creates a unique subdirectory. This will be the default behavior. - `false`<!-- -->: Uses the root path as the target directory without creating a subdirectory. - a string such as `sub-dir-1`<!-- -->: creates a subdirectory with the given value.
<b>Signature:</b>
```typescript
subdir: boolean | string;
```