MCPcopy
hub / github.com/web-infra-dev/rsbuild / getFileContent

Function getFileContent

e2e/helper/utils.ts:298–302  ·  view source on GitHub ↗
(
  files: Record<string, string>,
  matcher: FileMatcher,
  options?: FindFileOptions,
)

Source from the content-addressed store, hash-verified

296 * @throws {Error} When no matching file is found
297 */
298export const getFileContent = (
299 files: Record<string, string>,
300 matcher: FileMatcher,
301 options?: FindFileOptions,
302): string => files[findFile(files, matcher, options)];
303
304export const enableDebugMode = () => {
305 process.env.DEBUG = 'rsbuild';

Callers 15

index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90

Calls 1

findFileFunction · 0.85

Tested by 6

expectConsoleTypeFunction · 0.72
expectCSSContextFunction · 0.72
testSourceMapTypeFunction · 0.72
expectSourceMapFunction · 0.72
checkManifestIntegrityFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…