e2ed
Version:
E2E testing framework over Playwright
15 lines (14 loc) • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.writeGlobalError = void 0;
const promises_1 = require("node:fs/promises");
const internal_1 = require("../../constants/internal");
/**
* Writes single global error of run to common file.
* @internal
*/
const writeGlobalError = async (globalError) => {
const globalErrorJsonString = JSON.stringify(globalError);
await (0, promises_1.appendFile)(internal_1.GLOBAL_ERRORS_PATH, `${globalErrorJsonString},\n`);
};
exports.writeGlobalError = writeGlobalError;