I noticed that my link to the project was not working. Updated the original post with a working link to the project. Still have not been able to solve the issue.
I did notice earlier that you’re struggling with the same issue and was reviewing your code. It is a very similar approach and but still I couldn’t come up with any solutions.
Thanks for looking… I am going to make an identical pen, to fiddle with and hopefully I will figure something out. Still not certain what the issue is though.
I figured mine out… I had the placement of my subtraction wrong when adjusting the time display. I will take a peek at yours when I have some additional time this evening. Good luck!
rahrahrah: Thanks for the update, I’ll try to check out the time display of my project. Do you have an updated version of your code publicly available?
I finally had the time and interest to look at this problem again. And now I managed to solve it as soon as I opened the file. The problem was that when I pressed the ‘Reset’ button, I did not clear the call clearInterval(this.timer). So when then the timer was reset and started again it always added new interval to tick every second. That’s why the tests were also running so very fast. I always just assumed that the tests ran very fast to speed up the testing.
Anyway the I updated my code in the codesandbox. Maybe it will be useful for someone. Link in the post above.