UNPKG

e2ed

Version:

E2E testing framework over Playwright

15 lines (14 loc) 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readGlobalWarnings = void 0; const promises_1 = require("node:fs/promises"); const internal_1 = require("../../constants/internal"); /** * Reads global warnings of run from directory. * @internal */ const readGlobalWarnings = async () => { const globalWarningsJsonString = await (0, promises_1.readFile)(internal_1.GLOBAL_WARNINGS_PATH, internal_1.READ_FILE_OPTIONS).catch(() => ''); return JSON.parse(`[${globalWarningsJsonString.slice(0, -2)}]`); }; exports.readGlobalWarnings = readGlobalWarnings;