Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat(upgrade): provide test helpers for wiring up injectors #16848
Conversation
petebacondarwin
added
the
comp: upgrade/static
label
May 17, 2017
googlebot
added
the
cla: yes
label
May 17, 2017
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
from
bfe4205
to
c73b392
May 17, 2017
This comment has been minimized.
This comment has been minimized.
|
Looking good! I think we need some more documentation on how to use this. Can this be part of the API docs? |
This comment has been minimized.
This comment has been minimized.
|
I'll add docs but wanted feedback on whether this is the right API first. |
This comment has been minimized.
This comment has been minimized.
|
As a reminder, the helpers need to be exported and |
This comment has been minimized.
This comment has been minimized.
|
Ping? |
This comment has been minimized.
This comment has been minimized.
|
Sorry I have been distracted. I will tidy it up this week. |
petebacondarwin
self-assigned this
Jun 25, 2017
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
from
c73b392
to
52735ee
Jul 3, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
And of course this PR falls foul of the change from CircleCI v1 to v2. |
petebacondarwin
closed this
Jul 3, 2017
petebacondarwin
reopened this
Jul 3, 2017
This comment has been minimized.
This comment has been minimized.
|
Just checking to see if closing and reopening helps with CircleCI |
gkalpak
referenced this pull request
Jul 4, 2017
Closed
Angular 1 unit tests fail with Angular 2 components using downgradeComponents #14263
gkalpak
reviewed
Jul 5, 2017
|
Just a few nits. Looks great so far (except that I have no idea about all the places we need to list a new package One thing I am a little concerned with is the namespacing of the module. Typically |
| @@ -21,6 +21,7 @@ import * as platformServerTesting from '@angular/platform-server/testing'; | |||
| import * as router from '@angular/router'; | |||
| import * as routerTesting from '@angular/router/testing'; | |||
| import * as upgrade from '@angular/upgrade'; | |||
This comment has been minimized.
This comment has been minimized.
gkalpak
Jul 5, 2017
Member
Unrelated to this PR: Does this include upgrade/static? Shouldn't it be explicitly imported?
mhevery
force-pushed the
angular:master
branch
from
08b36cb
to
5d4b36f
Jul 20, 2017
This comment has been minimized.
This comment has been minimized.
kieranblight
commented
Jul 21, 2017
•
|
Hi @petebacondarwin, I am just wondering what the rough timeline for this to be release will be? |
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
from
0743841
to
0260634
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
@kieranblight - I have been having difficulties getting the new package into the system. I hope to finish this and get it in by the end of this week. |
This comment has been minimized.
This comment has been minimized.
kieranblight
commented
Jul 24, 2017
|
@petebacondarwin thank you, look forward to it :)! |
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
3 times, most recently
from
0ca84ba
to
733d0aa
Jul 29, 2017
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
2 times, most recently
from
d3c0ab5
to
590e8c2
Aug 16, 2017
petebacondarwin
added
PR action: review
and removed
PR state: WIP
labels
Apr 13, 2019
This comment has been minimized.
This comment has been minimized.
fzxt
commented
Apr 20, 2019
|
Ping? It would be nice to get these helpers in soon. Can any googlers help out with the review? |
This comment has been minimized.
This comment has been minimized.
|
@jasonaden is working on it :-) |
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
from
eac230b
to
5d53a7e
Apr 25, 2019
This comment has been minimized.
This comment has been minimized.
zuzusik
commented
Jun 13, 2019
|
any expectations on when this is going to be finished? thanks! |
This comment has been minimized.
This comment has been minimized.
|
Apart from the conflicts it is ready to be reviewed. It is unlikely to land before 8.2 or 9 now. |
petebacondarwin
added some commits
Mar 22, 2019
petebacondarwin
force-pushed the
petebacondarwin:ngupgrade-testing-api
branch
from
5d53a7e
to
c2752af
Jun 14, 2019
petebacondarwin
added
PR target: master-only
and removed
PR target: TBD
labels
Jun 14, 2019
gkalpak
approved these changes
Jun 14, 2019
alxhub
approved these changes
Jun 14, 2019
|
+1 for compiler. |
IgorMinar
approved these changes
Jun 17, 2019
|
Lgtm for API changes. |
petebacondarwin
added
PR action: merge
PR action: presubmit
and removed
PR action: review
labels
Jun 17, 2019
This comment has been minimized.
This comment has been minimized.
AndrewKushnir
added
the
PR action: cleanup
label
Jun 17, 2019
This comment has been minimized.
This comment has been minimized.
|
Presubmit indicated that we need to perform additional changes in build files in g3 to land this PR. I've added "cleanup" label for now and will look into the build files update asap. Thank you. |
This comment has been minimized.
This comment has been minimized.
|
Thanks @AndrewKushnir |
This comment has been minimized.
This comment has been minimized.
|
New VE presubmit, including g3 changes. Note to Caretaker: this PR requires additional change in g3: cl/254085499, to update BUILD file with extra rules to build |
petebacondarwin commentedMay 17, 2017
•
edited
Sits on top of #29466
This PR provides two test helpers for the upgrade/static library, which wire up the Angular and AngularJS injectors without the need for a full bootstrap of a hybrid app.
createAngularJSTestingModule()should be used in AngularJS testscreateAngularTestingModule()should be used in Angular testsCheck out the spec files for example usage.