在 rush monorepo 中配置 jest、wallabyjs

Configuring jest, wallabyjs in a rush monorepo

我正在尝试使用 rush for monorepo management, jest as my test framework, and wallabyjs 作为我的测试运行器来设置一个 monorepo。当我尝试启动 wallaby 时,我在 wallaby 控制台中收到错误 [Error] Automatic Jest configuration error: Module jest-cli is not found in '.'.

我对 rush 及其 monorepo 方法的理解是根目录没有 package.json - 只有实际的 libs/apps 有一个 package.json 文件。如果是这种情况,如何在根级别添加 jest-cli?我在全球范围内安装了 jest-cli。

我需要做什么才能得到这个 运行?

问题是 wallaby 自动配置显然不能在 monorepo 中工作。我必须明确添加一个 wallaby.js 配置文件。该文件的详细信息如下:https://wallabyjs.com/docs/config/overview.html