import path from 'pathe' import { resolveImport } from 'resolve-import-path' import fs from 'fs-extra' export const vitestBinRoot = (() => { const packagePath = resolveImport('vitest/package.json') const root = path.dirname(packagePath) const json = fs.readJsonSync(packagePath) return path.join(root, json.bin.vitest) })()