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

Function isPackageExists

packages/browser/src/node/plugin.ts:29–33  ·  view source on GitHub ↗
(pkg: string, root: string)

Source from the content-addressed store, hash-verified

27
28export default (parentServer: ParentBrowserProject, base = '/'): Plugin[] => {
29 function isPackageExists(pkg: string, root: string) {
30 return parentServer.vitest.packageInstaller.isPackageExists?.(pkg, {
31 paths: [root],
32 })
33 }
34
35 return [
36 {

Callers 3

configFunction · 0.85
isPackageExistsMethod · 0.85
ensureInstalledMethod · 0.85

Calls 1

isPackageExistsMethod · 0.80

Tested by

no test coverage detected