We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 526fa1d commit 2eafa04Copy full SHA for 2eafa04
__tests__/all.test.ts
@@ -24,12 +24,13 @@ let precompileSpy: Mock;
24
25
async function mockTemplateCompiler(importOriginal: () => Promise<EmberTemplateCompiler>) {
26
const mod = await importOriginal();
27
- precompileSpy = vi.spyOn(mod, 'precompile');
+ precompileSpy = vi.fn(mod.precompile);
28
return {
29
// the plugin probes for the existence of this, and if we don't stick a key
30
// here Vitest injects a failure
31
default: null,
32
...mod,
33
+ precompile: precompileSpy,
34
};
35
}
36
0 commit comments