My tests don´t make sense in my 25 + 5 clock

Most of the #Timer tests fails, but testing manually it seams to work. The values for the break time and session time got negative wile testing but never wen clicking normally (i manage to kind of fixing it, but i don’t believe i did it right). I rewrote this in different ways but always got the same result. Please help me.
This is my code:

if it’s working normally and it’s functional, then good work. you did it👍

freeCodeCamp test codes don’t get along too well with the new render method of ReactDOM 18 (react strict mode).

Try replacing

const root = ReactDOM.createRoot(document.getElementById('root'));
    <App />

with the old react rendering

ReactDOM.render(<App />, document.getElementById('id'));

Thank you! With this other method the tests are working perfectly!

Thank you! I spent so long on this because the tests kept failing though it was working manually. Switching to the old rendering method worked!

1 Like

This message is for people, who are facing similar issue, you can track the developer team progress in this issue here.

Know that this issue is more difficult than it seems, and the volunteers are doing what they can.:green_heart:

Have a nice day and happy coding

1 Like

Thank you very much! This solved the problem!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.