MCPcopy
hub / github.com/remix-run/react-router / selectHtml

Function selectHtml

integration/helpers/playwright-fixture.ts:251–255  ·  view source on GitHub ↗
(source: string, selector: string)

Source from the content-addressed store, hash-verified

249}
250
251export async function selectHtml(source: string, selector: string) {
252 let el = getElement(source, selector);
253 let html = await prettyHtml(cheerio.html(el));
254 return html.trim();
255}
256
257export async function prettyHtml(source: string) {
258 return prettier.format(source, { parser: "html" });

Callers 4

rendering-test.tsFile · 0.85
action-test.tsFile · 0.85
getHtmlFunction · 0.85

Calls 2

getElementFunction · 0.85
prettyHtmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…