Library secondary entry-point generation #19070
Labels
area: @schematics/angular
feature: insufficient votes
Label to add when the not a sufficient number of votes or comments from unique authors
feature
Issue that requests a new feature
Milestone
🚀 Feature request
Command (mark with an
x
)Description
Creating a secondary entry points for libraries is a manual effort with a risk of misconfiguration of unit testing environment.
In order to get a proper coverage report for all the libraries, the following needs to be adjusted:
test.ts
the context path should be changed:const context = require.context('../', true, /\.spec\.ts$/);
angular.json
thesourceRoot
path should be changed:"sourceRoot": "projects/lib-name",
(no/src
)Describe the solution you'd like
Create a schematic that generates the secondary entry point for the given library.
I would be happy to provide a PR if this get's greenlit.
The text was updated successfully, but these errors were encountered: