Skip to content

Commit

Permalink
test(): fix tsconfig paths hook test
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 26, 2022
1 parent f028df8 commit b8a4b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lib/compiler/hooks/tsconfig-paths.hook.spec.ts
Expand Up @@ -21,6 +21,7 @@ function createSpec(
options,
});
const output = new Map<string, string>();
const transformer = tsconfigPathsBeforeHookFactory(options);
program.emit(
undefined,
(fileName, data) => {
Expand All @@ -29,7 +30,7 @@ function createSpec(
undefined,
undefined,
{
before: [tsconfigPathsBeforeHookFactory(options)!],
before: transformer ? [transformer] : [],
},
);
return output;
Expand Down

0 comments on commit b8a4b51

Please sign in to comment.