Skip to content

Commit 9343aee

Browse files
committed
fix(detector): mock types
1 parent 72a06e9 commit 9343aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

detector/test/reporter-html.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExportOptions, SmellsAggreagtor, SmellsList } from '../src/reporters/Html';
22
import { HtmlOutput } from '../src/reporters/Output';
33
import { ReadHtml } from '../src/reporters/Input';
4-
import { vi,test, describe, expect } from 'vitest';
4+
import { vi,test, describe, expect, Mock } from 'vitest';
55

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

14-
ReadHtml.mockImplementation(() => {
14+
(ReadHtml as Mock).mockImplementation(() => {
1515
return {
1616
readTeamplate: () => Promise.resolve('fake data')
1717
};

0 commit comments

Comments
 (0)