UNPKG

allure-cucumberjs

Version:

Allure Cucumber.JS integration

13 lines 546 B
import path from "node:path"; import { getPosixPath, getRelativePath } from "allure-js-commons/sdk/reporter"; export var getPathRelativeToProjectRoot = _ref => { var { uri } = _ref; return getRelativePath( // Pickle.uri is always relative to the CWD when run from the CLI. // However, it might be absolute if run from code. path.isAbsolute(uri) ? uri : path.join(process.cwd(), uri)); }; export var getPosixPathRelativeToProjectRoot = pickle => getPosixPath(getPathRelativeToProjectRoot(pickle)); //# sourceMappingURL=utils.js.map