MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / resolvePartials

Function resolvePartials

lib/command/list.js:60–64  ·  view source on GitHub ↗
(text, partials)

Source from the content-addressed store, hash-verified

58}
59
60function resolvePartials(text, partials) {
61 return text.replace(/\{\{>\s*([\w-]+)\s*\}\}/g, (match, name) => {
62 return partials.has(name) ? partials.get(name) : match
63 })
64}
65
66function extractMethodDocs(helper, helperName, config, testsPath, partials) {
67 const result = new Map()

Callers 1

extractMethodDocsFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected