Closed roomman closed 2 years ago
Can you point out in which part of the adapter code it's failing? And maybe a snippet of VideoList template as well.
My hunch is that you may be trying to render some relationships which isn't being waited for by the tests so while it's doing those, the test gets destroyed already.
Hi @mikkopaderes and thanks for your response. I had the same instinct and went about eliminating async behaviours related to the adapter. After a painful few days it turns out it has nothing to do with this addon, and everything to do with Embroider's code splitting option. With code splitting on, my tests are unable to lookup routes and controllers that are being split. Sorry for the distraction.
Hi, I'm refactoring a project to use the latest version of this addon. My test suite is failing when the
isFastBoot
getter in the adapter is called, though I can't work out why.Here is an example of a test that fails, when run in isolation:
Here is the error:
Any thoughts on why
this
is destroyed by the time it gets into the adapter?