MCPcopy
hub / github.com/remix-run/remix / getIstanbul

Function getIstanbul

packages/test/src/lib/coverage.ts:22–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 | undefined
21
22function getIstanbul() {
23 if (!_istanbul) {
24 process.env.FORCE_COLOR ??= process.stdout.isTTY ? '1' : '0'
25 let require = createRequire(import.meta.url)
26 _istanbul = {
27 V8ToIstanbul: require('v8-to-istanbul'),
28 createCoverageMap: (
29 require('istanbul-lib-coverage') as { createCoverageMap: typeof CreateCoverageMap }
30 ).createCoverageMap,
31 createContext: (require('istanbul-lib-report') as { createContext: typeof CreateContext })
32 .createContext,
33 reports: require('istanbul-reports') as typeof IstanbulReports,
34 }
35 }
36 return _istanbul
37}
38
39export interface CoverageConfig {
40 dir: string

Callers 6

filterCoverageMapFunction · 0.85
writeIstanbulReportsFunction · 0.85
addV8EntryToCoverageMapFunction · 0.85
collectServerCoverageMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…