MCPcopy Create free account
hub / github.com/github/docs / preprocess

Function preprocess

tests/unit/data-directory/index.js:19–21  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

17
18 test('option: preprocess function', async () => {
19 const preprocess = function (content) {
20 return content.replace('markdown', 'MARKDOWN')
21 }
22 const data = dataDirectory(fixturesDir, { preprocess })
23 expect(data.nested.baz).toBe('I am MARKDOWN!')
24 })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected