e2ed
Version:
E2E testing framework over Playwright
16 lines (15 loc) • 643 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTestStaticOptions = void 0;
const getRelativeTestFilePath_1 = require("../getRelativeTestFilePath");
/**
* Get test static options from test and `TestInfo`.
* @internal
*/
const getTestStaticOptions = (test, testInfo) => {
// eslint-disable-next-line no-underscore-dangle
const absoluteFilePath = String(testInfo._requireFile);
const filePath = (0, getRelativeTestFilePath_1.getRelativeTestFilePath)(absoluteFilePath);
return { filePath, name: test.name, options: test.options };
};
exports.getTestStaticOptions = getTestStaticOptions;