MCPcopy
hub / github.com/vitest-dev/vitest / parse

Function parse

test/core/test/injector-esm.test.ts:5–7  ·  view source on GitHub ↗
(code: string, options: any)

Source from the content-addressed store, hash-verified

3import { injectDynamicImport } from '../../../packages/mocker/src/node/dynamicImportPlugin'
4
5function parse(code: string, options: any): any {
6 return parseAst(code, options)
7}
8
9function injectSimpleCode(code: string) {
10 return injectDynamicImport(code, '/test.js', parse)?.code

Callers 10

tester.tsFile · 0.50
automockModuleFunction · 0.50
hoistMocksFunction · 0.50
injectDynamicImportFunction · 0.50
registerMetadataFunction · 0.50
loadAutomockMethod · 0.50
createLoadHookFunction · 0.50
fromBase64Method · 0.50
readBlobsFunction · 0.50
html.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected