/
githubmirror
/
lerna
Обзор
Документация
Войти
/
githubmirror
/
lerna
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/commands/init/vitest.setup.ts
9 строк
549 B
James Henry
chore(repo): migrate from jest to vitest (#4389)
13 июл 2026, 20:06
Не верифицирован
13 июл 2026, 20:06
1f7e109
Код
Авторство
О чём код?
import path from "path"; // The InitCommand constructor immediately runs execute() against process.cwd(). // Under jest (via the @nx/jest executor) tests always ran from the workspace // root, where a lerna.json exists, so execute() exited early without touching // the file system. Running `vitest run` from the project directory would // otherwise let execute() scaffold a real lerna workspace (and run a package // manager install) inside libs/commands/init, so pin cwd to the workspace root. process.chdir(path.resolve(__dirname, "../../.."));