File tree Expand file tree Collapse file tree
src/Vitest.ReactTestingLibrary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -339,8 +339,9 @@ type RTL =
339339 [<ImportMember( " @testing-library/react" ) >]
340340 static member cleanup () : unit = jsNative
341341
342- [<ImportMember( " @testing-library/react" ) >]
343- static member act ( actFn : unit -> Promise < unit >) : Promise < unit > = jsNative
342+ // [<ImportMember("@testing-library/react")>]
343+ // [<Emit("$0")>]
344+ // static member act (actFn: unit -> Promise<unit>) : Promise<unit> = jsNative
344345
345346 [<ImportMember( " @testing-library/react" ) >]
346- static member act ( actFn : unit -> unit ) : Promise < unit > = jsNative
347+ static member act ( actFn : unit -> unit ) : unit = jsNative
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ describe "useEffect" <| fun _ ->
214214 expect( dispose). toHaveBeenCalledTimes 1
215215 }
216216
217- ftestPromise " IDisposable return calls Dispose() function" <| fun _ -> promise {
217+ testPromise " IDisposable return calls Dispose() function" <| fun _ -> promise {
218218 RTL.render ( Components.EffectfulTimer())
219219 |> ignore
220220
You can’t perform that action at this time.
0 commit comments