最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jestjs - jest with angular(19) mono repo - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论