@@ -6,10 +6,10 @@ import type {
6
6
ProfiledHook ,
7
7
} from "../internal/index.js" ;
8
8
export const toRerender : MatcherFunction < [ options ?: NextRenderOptions ] > =
9
- async function (
10
- _profiled : ProfiledComponent < any , any > | ProfiledHook < any , any > ,
11
- options ?: NextRenderOptions
12
- ) {
9
+ async function ( actual , options ) {
10
+ const _profiled = actual as
11
+ | ProfiledComponent < any , any >
12
+ | ProfiledHook < any , any > ;
13
13
const profiled =
14
14
"ProfiledComponent" in _profiled
15
15
? _profiled . ProfiledComponent
@@ -42,11 +42,10 @@ const failed = {};
42
42
43
43
export const toRenderExactlyTimes : MatcherFunction <
44
44
[ times : number , options ?: NextRenderOptions ]
45
- > = async function (
46
- _profiled : ProfiledComponent < any , any > | ProfiledHook < any , any > ,
47
- times : number ,
48
- optionsPerRender ?: NextRenderOptions
49
- ) {
45
+ > = async function ( actual , times , optionsPerRender ) {
46
+ const _profiled = actual as
47
+ | ProfiledComponent < any , any >
48
+ | ProfiledHook < any , any > ;
50
49
const profiled =
51
50
"ProfiledComponent" in _profiled ? _profiled . ProfiledComponent : _profiled ;
52
51
const options = { timeout : 100 , ...optionsPerRender } ;
0 commit comments