-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
test(ivy): add JIRA references for root-casuse TestBed failures #27196
test(ivy): add JIRA references for root-casuse TestBed failures #27196
Conversation
You can preview 074333e at https://pr27196-074333e.ngbuilds.io/. |
074333e
to
af7a4ea
Compare
You can preview af7a4ea at https://pr27196-af7a4ea.ngbuilds.io/. |
af7a4ea
to
9ae3cc8
Compare
You can preview 9ae3cc8 at https://pr27196-9ae3cc8.ngbuilds.io/. |
9ae3cc8
to
d4fcb3c
Compare
You can preview d4fcb3c at https://pr27196-d4fcb3c.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for these nits.
p.s. also noticed a typo in the commit message. fix?
@@ -1412,7 +1434,7 @@ function declareTests(config?: {useJit: boolean}) { | |||
expect(getDOM().querySelectorAll(fixture.nativeElement, 'script').length).toEqual(0); | |||
}); | |||
|
|||
it('should throw when using directives without selector', () => { | |||
fixmeIvy('pull/27169') && it('should throw when using directives without selector', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be good to keep this fixme consistent with the rest and use the JIRA issue number and title here. (Same with PR mentions below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
beforeEach( | ||
() => | ||
TestBed | ||
.configureTestingModule({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to fix the formatting here? It's a bit hard to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, all credits go to clang :-)
Exceptionally, for this particular one, I've just added ticket reference (FW-670
) and the full ticket title in a comment above.
const token = 'a.b'; | ||
const tokenValue = 1; | ||
const injector = createInjector([{provide: token, useValue: tokenValue}]); | ||
fixmeIvy('FW-646: Cannot create property __NG_ELEMENT_ID__ on a primitive type') && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change so the reason matches the JIRA ticket title?
FW-646: Directive providers don't support primitive types as DI tokens
@@ -15,10 +15,11 @@ import {fixmeIvy} from '@angular/private/testing'; | |||
|
|||
{ | |||
if (ivyEnabled) { | |||
fixmeIvy('unknown') && describe('ivy', () => { declareTests(); }); | |||
fixmeIvy('FW-663: ReferenceError: goog is not defined') && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkozlowski-opensource I'd propose to move this fixmeIvy
next to the should support the "i18n" attribute
test (which is causing this error), the rest of the tests should not have this issue and can be investigated further for other failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. You are right, goog is not defined
issue is blocking just one test here.
d4fcb3c
to
71a4507
Compare
71a4507
to
15fe3f1
Compare
You can preview 71a4507 at https://pr27196-71a4507.ngbuilds.io/. |
You can preview 15fe3f1 at https://pr27196-15fe3f1.ngbuilds.io/. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This PR enables more of the
@angular/core
tests running with ivy onTestBed
. It basically do 2 things:fixmeIvy
fromdescribe
toit
to enable more tests running on CI (for cases where there were passing tests but there were not running since the entiredescribe
was disabled);