Replies: 1 comment 11 replies
-
You don't mock the http response? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are starting using @ngneat/query in our customer project.
Unfortunately, I can't get a working setup for my tests when using spectator. The fetched result never appears.
When I log the rendered HTML, I can see that the list containing my fetched elements never appears
app.component.html
app.component.ts
app.component.spec.ts
What I tried so far:
detectChanges
,detectComponentChanges
,fixture.whenStable
, no successfakeAsync
,tick
, andflush
at the right places. Works, but looks clumsyI've uploaded the complete project to GitHub.
https://github.com/enolive/query-testing/tree/spectator
as a side node, when using @testing-library/angular instead of spectator, everything works fine (which is in the
main
branch of the project).what am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions