Skip to content

Commit

Permalink
fix(detector): mock types
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Nov 30, 2024
1 parent 72a06e9 commit 9343aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detector/test/reporter-html.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExportOptions, SmellsAggreagtor, SmellsList } from '../src/reporters/Html';
import { HtmlOutput } from '../src/reporters/Output';
import { ReadHtml } from '../src/reporters/Input';
import { vi,test, describe, expect } from 'vitest';
import { vi,test, describe, expect, Mock } from 'vitest';

vi.mock('../src/reporters/Input');
vi.mock('../src/reporters/Output');
Expand All @@ -11,7 +11,7 @@ describe('report html', () => {
const smellsFound: SmellsList[] = [];
const exportsOptions: ExportOptions = { to: '.' };

ReadHtml.mockImplementation(() => {
(ReadHtml as Mock).mockImplementation(() => {
return {
readTeamplate: () => Promise.resolve('fake data')
};
Expand Down

0 comments on commit 9343aee

Please sign in to comment.