SolidJSS
SolidJSโ€ข3y agoโ€ข
2 replies
Abrinzer

Solid Testing Library

Guys , I have a function which has some signal and store updation inside it and I call this function by Clicking a button. Whenever I am doing userEvent click on the button my signal is not updating. I have to manually update the signal like below .

createRoot((dispose) => {
    setSingal({ list: Array(5).fill(0)});
    dispose();
  });
userEvent.click(results.getByTestId("button-id"));
Was this page helpful?