Describe your problem and how to reproduce it:
I've noticed that the challenges of Advanced Node and Express from Sockets challenge till the last challenge (last 6 challenges of Advanced Node and Express) not passing.
I searched a lot did everything but couldn't pass even a single test. I even copied code from the FCC own glitch project and paste it in in the input but still not passing.
Then I pasted the FCC own project into the input and noticed that wasn't passing as well.
I am uploading the picture where I put the FCC's own glitch project into the input and you will see that wasn't passing the tests as well.
Please fix this testing issues of advanced node and express...
Add a Link to the page with the problem:
starts from here => link
ends here => link
Tell us about your browser and operating system:
If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):
Hey :smile:!
Most of them pass, but there are some things missing:
const app = express();
const cors = require('cors');
app.use(cors());
// The following is beautified by prettier:
io.use(
passportSocketIo.authorize({
// But the test won't pass unless it's on the same line
io.use(passportSocketIo.authorize({
My friend!
I had already did as you said but the result is the same.
can you send me the link of your project that you passed these challenges?
Sure!
Here they are. I just tested again and they work :smile:.
Remember, do not format/beautify the server.js file, otherwise the tests will fail. You may need to comment out the io.emit('user count')
if a test fails.
Abbas, If you haven't figured it out yet, I just ran into the same issue, and skaparate linked me to this issue, and I was able to resolve it by adding app.use(cors())
to the fcctesting.js
file and that fixed it for me.
yes, I did figured that out when skaparate send me the link to his project. thanks skaparate
In case anyone else comes across this, there is an open pull request for this issue.