将 Angular 升级到 v 13 后,当我尝试在 jest 环境中运行测试时出现错误:
Cannot set base providers because it has already been called
import 'jest-preset-angular/setup-jest';
此外,我像这篇文章中指出的那样配置了 Jest:https ://thymikee.github.io/jest-preset-angular/docs/next/guides/esm-support/但它对我没有帮助。需要帮忙。如何修复我的测试?