Closed gossi closed 5 months ago
Oh welp, it was too trivial:
import { getContext } from '@ember/test-helpers';
import type { TestContext } from '@ember/test-helpers';
// ...
const spotifyService = service(getContext() as TestContext, SpotifyService);
Closing, but for people coming here via google. That's the solution =)
In a classic ember service I have the following test:
now, with this addon, I can "only override?" the entire service class? What's the intended way to write tests like above?