Closed tspmelo closed 1 year ago
Run & review this pull request in StackBlitz Codeflow.
I'm not sure what issue you're fixing. Can you explain, please?
Like I mention on the issue, currently the fesm2015
version is causing failure in jest.
I try finding a similar issue in @angular/cli
but could not find anything, so I decided it should be easier to handle it here.
While trying to debug the issue locally, and given that the error happens because the code is trying to inject before the config is provided,
I tried to use fowardRef
on that inject and it started to work.
Since this doesn't break anything I decided to open the PR with it.
Close #114
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #114
What is the new behavior?
SVG_ICONS_CONFIG injection doesn't fail while it's still not defined and Jest is able to run successfully.
Does this PR introduce a breaking change?
Other information