Skip to content
On this page

Empower Your Test Results with AI-Powered Insights ->

setDataDirectory

sets data directory path.

Defaults to ./data path

Syntax

js
setDataDirectory(path)

Usage

โœ… Correct Usage

js
settings.setDataDirectory('new/path')

Arguments

> path (string)

Data directory path.

Examples

Normal

js
const { settings } = require('pactum');

settings.setDataDirectory('new/path');

See Also

Released under the MIT License.