e2ed
Version:
E2E testing framework over Playwright
15 lines (14 loc) • 536 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.readStartInfoSync = void 0;
const node_fs_1 = require("node:fs");
const internal_1 = require("../../constants/internal");
/**
* Reads start info from temporary directory in sync manner.
* @internal
*/
const readStartInfoSync = () => {
const startInfoJsonString = (0, node_fs_1.readFileSync)(internal_1.START_INFO_PATH, internal_1.READ_FILE_OPTIONS);
return JSON.parse(startInfoJsonString);
};
exports.readStartInfoSync = readStartInfoSync;