admin管理员组文章数量:1356876
I tried several times to convert our angular mono repo to use jest but without success. I created sample project that contains 2 project inside 1.my-app 2.my-lib
This is the tree of the projects:
each of the projects contains his tsconfig.spec.json file on the root level I have angular.json , package.json and tsconfig.json.
I try several approaches angular-builder\angular-devkit \ delete test configuration from angular.json and run the jest commands.
With or without jest.config and setup-jest file and also with jest-preset-angular.
Bottom line it's not working or jest not find the files from the lib project or he claims
" [ERROR] File 'appponent.spec.ts' is missing from the TypeScript compilation. [plugin angular-compiler]
Ensure the file is part of the TypeScript program via the 'files' or 'include' property."
also here nothing helped.
本文标签: jestjsjest with angular(19) mono repoStack Overflow
版权声明:本文标题:jestjs - jest with angular(19) mono repo - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743982066a2571124.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论