e2ed
Version:
E2E testing framework over Playwright
22 lines (21 loc) • 763 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.readNotIncludedInPackTests = void 0;
const promises_1 = require("node:fs/promises");
const internal_1 = require("../../constants/internal");
/**
* Reads array of not included in pack tests.
* @internal
*/
const readNotIncludedInPackTests = async () => {
let textOfNotIncludedInPackTestsFile = '';
try {
textOfNotIncludedInPackTestsFile = await (0, promises_1.readFile)(internal_1.NOT_INCLUDED_IN_PACK_TESTS_PATH, internal_1.READ_FILE_OPTIONS);
}
catch { }
return textOfNotIncludedInPackTestsFile
.split('\n')
.map((line) => line.trim())
.filter(Boolean);
};
exports.readNotIncludedInPackTests = readNotIncludedInPackTests;