MCPcopy Create free account
hub / github.com/angular/dev-infra / addList

Method addList

github-actions/browserstack/set-browserstack-env.js:19689–19694  ·  view source on GitHub ↗

* Adds an HTML list to the summary buffer * * @param {string[]} items list of items to render * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) * * @returns {Summary} summary instance

(items, ordered = false)

Source from the content-addressed store, hash-verified

19687 return __awaiter(this, void 0, void 0, function* () {
19688 const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
19689 const filePath = yield this.filePath();
19690 const writeFunc = overwrite ? writeFile : appendFile;
19691 yield writeFunc(filePath, this._buffer, { encoding: "utf8" });
19692 return this.emptyBuffer();
19693 });
19694 }
19695 /**
19696 * Clears the summary buffer and wipes the summary file
19697 *

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.45
addEOLMethod · 0.45
addRawMethod · 0.45

Tested by

no test coverage detected