Skip to content

Commit b734f27

Browse files
committed
Fix vitest extensions typing (FIXME)
1 parent 0516946 commit b734f27

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cashscript/src/test/VitestExtensions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DebugResults } from '../debugging.js';
2+
import type { MatcherState } from '@vitest/expect';
23

34
interface Debuggable {
45
debug(): DebugResults | Promise<DebugResults>;
@@ -14,8 +15,7 @@ interface ExpectationResult {
1415
}
1516

1617
export function toLog(
17-
// FIXME: improve type definition
18-
this: any,
18+
this: MatcherState,
1919
transaction: Debuggable,
2020
match?: RegExp | string,
2121
): ExpectationResult {
@@ -62,7 +62,7 @@ export function toLog(
6262
}
6363

6464
export function toFailRequireWith(
65-
this: any,
65+
this: MatcherState,
6666
transaction: Debuggable,
6767
match: RegExp | string,
6868
): ExpectationResult {
@@ -88,7 +88,7 @@ export function toFailRequireWith(
8888
}
8989

9090
export function toFailRequire(
91-
this: any,
91+
this: MatcherState,
9292
transaction: Debuggable,
9393
): ExpectationResult {
9494
const { utils } = this;

0 commit comments

Comments
 (0)