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 ef45fc3 commit 5e4d4fbCopy full SHA for 5e4d4fb
lib/loader.spec.ts
@@ -54,10 +54,16 @@ describe("TypeScriptLoader", () => {
54
let stub: jest.SpyInstance<tsnode.Service, [service: tsnode.Service]>;
55
56
beforeEach(() => {
57
- stub = jest.spyOn(tsnode, "register").mockImplementation(() => {
58
- // eslint-disable-next-line @typescript-eslint/no-throw-literal
59
- throw unknownError;
60
- });
+ stub = jest.spyOn(tsnode, "register").mockImplementation(
+ () =>
+ ({
+ compile: (): string => {
61
+ // eslint-disable-next-line @typescript-eslint/no-throw-literal
62
+ throw unknownError;
63
+ },
64
+ } as any)
65
+ );
66
+ loader = TypeScriptLoader();
67
});
68
69
afterEach(() => {
0 commit comments