You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TestBed.configureTestingModule().compileComponents() is not technically required, but it does make a nice place to hang mocks, which is a very common need (or should be if ppl are doing unit testing correctly).
As such, having the TestBed.configureTestingModule() there, to begin with, is very handy for all but trivial or improperly tested pages. So perhaps being consistent with the current tabs starter and having that in there would overall make things easier for developers.
The text was updated successfully, but these errors were encountered:
The test for the new page will fail to compile:
The problem is with the
beforeEach
. It is callingasync
like a function:The
async
is not actually needed in this case, so we could do:On another note, the
beforeEach()
for the generated pages (at least with the tabs starter) looks like this:The
TestBed.configureTestingModule().compileComponents()
is not technically required, but it does make a nice place to hang mocks, which is a very common need (or should be if ppl are doing unit testing correctly).Example:
As such, having the
TestBed.configureTestingModule()
there, to begin with, is very handy for all but trivial or improperly tested pages. So perhaps being consistent with the current tabs starter and having that in there would overall make things easier for developers.The text was updated successfully, but these errors were encountered: