Add support for projects structure
Closed this issue · 3 comments
Is your feature request related to a problem? Please describe.
We have the following folder structure generated with the cli using this commands:
ng new jesttest2 --create-application=false --style=css --routing=false --directory=./
ng generate application jesttest2 --style=css
When we then run the schematics it sets the root path to 'src'
Describe the solution you'd like
Add jest config to project
Describe alternatives you've considered
Do it manually
Additional context
Folderstructure after schematic:add
Hi @ChristianKohler, unfortunately this is expected. Currently this schematic doesn't account for the possibility of multiple projects/applications or libraries. This will need to be a future improvement that relies on the angular.json mappings to add correct Jest setup. We'll keep this issue open as a reminder. Thanks for reporting.
Please see if ng add @briebug/jest-schematic@3.0.0-0
solves the issue
Yes it works 👍 Thank you @schuchard