Skip to content

fix(compiler): TestBed.overrideProvider should keep imported NgModules eager - #19624

Closed
tbosch wants to merge 1 commit into
angular:masterfrom
tbosch:fix_providers2
Closed

tbosch wants to merge 1 commit into
angular:masterfrom
tbosch:fix_providers2

Conversation

@tbosch

@tbosch tbosch commented Oct 9, 2017 •

Copy link
Copy Markdown
Contributor

The first 2 commits are from #19558. Before this PR is merged, we need to change some tests in G3 to use the new TestBed.deprecatedOverrideProvider so they won't break.

@tbosch tbosch changed the title Fix providers - Part 1 fix(compiler): TestBed.overrideProvider should keep imported NgModules eager Oct 9, 2017
@tbosch
tbosch requested a review from chuckjaz October 9, 2017 21:14
@mary-poppins

Copy link
Copy Markdown

You can preview cfcf3f9 at https://pr19624-cfcf3f9.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 43a461a at https://pr19624-43a461a.ngbuilds.io/.

@tbosch tbosch added area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Oct 9, 2017
…ule`s eager

Before, as soon as a user called `TestBed.overrideProvider` for a provider
of a `NgModule` that was imported via `TestBed.configureTestingModule`,
that `NgModule` became lazy.

This commit changes this behavior to keep the `NgModule` eager,
with or without a call to `TestBed.overrideProvider`.
@mary-poppins

Copy link
Copy Markdown

You can preview 4a8b9a7 at https://pr19624-4a8b9a7.ngbuilds.io/.

@chuckjaz chuckjaz closed this in b0befd7 Oct 10, 2017
chuckjaz pushed a commit that referenced this pull request Oct 11, 2017
…ule`s eager (#19624)

Before, as soon as a user called `TestBed.overrideProvider` for a provider
of a `NgModule` that was imported via `TestBed.configureTestingModule`,
that `NgModule` became lazy.

This commit changes this behavior to keep the `NgModule` eager,
with or without a call to `TestBed.overrideProvider`.

PR Close #19624
@tbosch
tbosch deleted the fix_providers2 branch October 17, 2017 23:03
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants