Open sangb-han opened 1 year ago
hey, any progress on this issue?
Any progress what so ever?
try add include property to angular.json
{
"projects": {
"sample_app": {
"architect": {
"test": {
"builder": "@angular-devkit/build-angular:jest",
"options": {
"include": ["projects/sample_app/src/**/*.spec.ts", "projects/sample_app/src/**/*.d.ts"],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/sample_app/tsconfig.spec.json"
}
}
}
},
"sample ": {
"architect": {
"test": {
"builder": "@angular-devkit/build-angular:jest",
"options": {
"include": ["projects/sample/src/**/*.spec.ts", "projects/sample/src/**/*.d.ts"],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/sample/tsconfig.spec.json"
}
}
}
}
}
}
Is this a bug report or a feature request?
Please provide the steps to reproduce the issue [Bug Report only]
Sample repository is in git@github.com:sangb-han/angv16_multi.git .
Create project like followings
After that, jest has been configured like in angular blog.
If I ran in workspace with single project, there was no problem. But in workspace with multiple project, test with jest failed.
Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]
All test run successfully.
Please provide a screenshot if possible [Bug Report only]
Please provide the exception or error you saw [Bug Report only]
Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]
Description [Feature Request only]
No response
Proposed solution [Feature Request only]
No response
Alternatives considered [Feature Request only]
No response