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

Function which

github-actions/browserstack/set-browserstack-env.js:19983–20005  ·  view source on GitHub ↗
(tool, check)

Source from the content-addressed store, hash-verified

19981 throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
19982 }
19983 this._filePath = pathFromEnv;
19984 return this._filePath;
19985 });
19986 }
19987 /**
19988 * Wraps content in an HTML tag, adding any HTML attributes
19989 *
19990 * @param {string} tag HTML tag to wrap
19991 * @param {string | null} content content within the tag
19992 * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
19993 *
19994 * @returns {string} content wrapped in HTML element
19995 */
19996 wrap(tag, content, attrs = {}) {
19997 const htmlAttrs = Object.entries(attrs).map(([key, value]) => ` ${key}="${value}"`).join("");
19998 if (!content) {
19999 return `<${tag}${htmlAttrs}>`;
20000 }
20001 return `<${tag}${htmlAttrs}>${content}</${tag}>`;
20002 }
20003 /**
20004 * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
20005 *
20006 * @param {SummaryWriteOptions} [options] (optional) options for write operation
20007 *
20008 * @returns {Promise<Summary>} summary instance

Callers 1

execMethod · 0.70

Calls 2

__awaiter3Function · 0.70
findInPathFunction · 0.70

Tested by

no test coverage detected