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