@wix-pilot/core
Version:
A flexible plugin that drives your tests with human-written commands, enhanced by the power of large language models (LLMs)
17 lines (16 loc) • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestContext = void 0;
const testEnvUtils_1 = require("./testEnvUtils");
/**
* Test context that provides information about the current test execution environment.
* Handles defaults internally so consumers always get working functionality.
*/
class TestContext {
getCurrentTestFilePath;
constructor(config = {}) {
this.getCurrentTestFilePath =
config.getCurrentTestFilePath ?? testEnvUtils_1.getCurrentTestFilePath;
}
}
exports.TestContext = TestContext;