New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Injections for NG15 #602
Comments
Although my answer is a bit late, if anyone still needs this, there is still the possibility to use the "test.ts". You can re-create the test.ts as it was before, just remove the "context" stuff. The test.ts Angular is using can be found here: You can take this "file" and put it again in your own "test.ts" file. Angular uses this default only when no "main" config option is set: So basically:
Good Luck! |
Description
Sinds Angular 15 the test.ts file is not available anymore. Now it's not possible to define injections which will be available for each test. Is it possible to find a work-around or a new implementation to handle this.
Proposed solution
I'm not sure.
Alternatives considered
I looked for ways to handle this with Karma-Jasmine with no luck.
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: