YLTN
August 17, 2022, 12:14pm
1
So my 25 + 5 clock certification project works fine, but 25 out of 29 tests pass. And when I check the reason the tests fail I find them unlogical since the tests pass manually.
Here is the link to the codepen project where you can check the tests and the code: https://codepen.io/yltn/pen/eYMrxgN
I really need help since this is my final project to certification and it would be a shame to just give up at the end.
ILM
August 17, 2022, 12:18pm
2
Unfortunately React 18 is not compaible 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
YLTN
August 17, 2022, 12:20pm
3
Oh, well what should I do then? I don’t know which things I should change in the code to fix the issue, or maybe should I just use another react version in the codepen?
ILM
August 17, 2022, 12:22pm
4
You can try to downgrade to React 17, if you used only things you learned in the freeCodeCamp curriculum, it will be perfectly fine.
Otherwise you will need to check that everything you used is also available in React 17.
YLTN
August 17, 2022, 12:24pm
5
Alright, thank you! I’ll check the code and hopefully it works.
system
Closed
February 16, 2023, 12:25am
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.