laipel
August 15, 2022, 4:17pm
1
I can’t understand why my solution is failings tests.
It works properly without running tests. Especially I don’t understand why durings test timer doesn’t reach 00:00. It stops on 10:00.
Here is my solution:
ILM
August 16, 2022, 4:07pm
2
Unfortunately, React 18 is not compatible with the test suite
opened 05:23PM - 11 May 22 UTC
type: bug
help wanted
scope: curriculum
status: work in progress
I have edited this issue.
Code that is passing using React 17 is failing with… React 18.
It seems to be an issue with the new batch rendering and our tests. At this time, I'm not sure what the best solution is. I haven't really looked into it much.
### Affected Page
* Random Quote Machine
* The fCC example is using jQuery, I tested it with React 18 and it worked just fine.
* Markdown Previewer
* Works
* JavaScript Calculator ✅ (the example project is passing but we may have to use a longer delay as I have seen at least one project fail with the new test code. I have not yet tested that code with a longer delay)
* 9/16 passed
* Example - https://codepen.io/lasjorg/pen/JjpRybg
* 25 + 5 Clock
* 13/29 passed (The test is no longer able to manipulate the timer so it is slow to test)
* Example - https://codepen.io/lasjorg/pen/WNMGEOM
* Drum Machine (fixed) ✅
* 7/8 passed
* Example - https://codepen.io/lasjorg/pen/jOZrXGv
Tests: https://github.com/freeCodeCamp/testable-projects-fcc/blob/main/src/project-tests/
### Additional context
Forum threads:
https://forum.freecodecamp.org/t/drum-machine-test-7-is-failing/507800/
https://forum.freecodecamp.org/t/stuck-on-drum-machine-test-7/508120/
https://forum.freecodecamp.org/t/25-5-clock-pomodoro-timer-not-passing-test-12-decrease-break-time/504446/12
https://forum.freecodecamp.org/t/my-tests-don-t-make-sense-in-my-25-5-clock/504936
The dev-team and volunteers are working in trying to fix this. Meanwhile you may need to downgrade to React 17
laipel
August 20, 2022, 4:38pm
3
I changed version to React 17 and even React 16
But it doesn’t work anyway
system
Closed
February 19, 2023, 4:39am
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.