Is there a way to debug how callbacks are called, when firing an event with testing-library?[SOLVED]
Hey,
I am having a hard time testing my code and would like to find out if and how some of my event handlers are actually being called, when I run
Some background: I am running solid inside a Tauri-Application which works very well.
However my issue is, that on the click of a button nothing observable seems to happen (it works perfectly fine in the real running application).
Basically what I am trying to do, is to setup some stores, render my app, find a button that should start a timer, advance these timers by using vitests fake timers and afterwards inspect, that a stop button is being rendered and the time has been adjusted accordingly.
My current (simplified without timers) test looks like this:
(continuation in thread)
I am having a hard time testing my code and would like to find out if and how some of my event handlers are actually being called, when I run
fireEvent.click() on a button.Some background: I am running solid inside a Tauri-Application which works very well.
However my issue is, that on the click of a button nothing observable seems to happen (it works perfectly fine in the real running application).
Basically what I am trying to do, is to setup some stores, render my app, find a button that should start a timer, advance these timers by using vitests fake timers and afterwards inspect, that a stop button is being rendered and the time has been adjusted accordingly.
My current (simplified without timers) test looks like this:
(continuation in thread)