I now have a development space thanks to @VonOx.
He was able to explain a lot of things to me.
I am now operational (at my level of course) to make PRs on GitHub.
This is what I did to start updating the chat.
All tests passed for my first changes.
I thought cool!!! I continue.
I added quite a few sentences and did some translations. I ran prettier and eslint to check, everything is ok.
But the test server no longer works, I have 4 errors. I don’t understand why.
`1) POST /api/v1/message
should send message:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/linux-vins/Gladys/server/test/controllers/message/message.test.js)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)`
2) brain should train brain: TypeError: Cannot read property 'forEach' of undefined at /home/linux-vins/Gladys/server/lib/brain/brain.train.js:15:24 at Array.forEach (<anonymous>) at Brain.train (lib/brain/brain.train.js:13:25) at Context.<anonymous> (test/lib/brain/brain.test.js:7:17) at processImmediate (internal/timers.js:461:21)
3) brain should classify sentence: Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/linux-vins/Gladys/server/test/lib/brain/brain.test.js)
4) brain should getReply: Error: Answer with intent calendar.next-event.get-location.success and language en not found at Brain.getReply (lib/brain/brain.getReply.js:17:11) at Context.<anonymous> (test/lib/brain/brain.test.js:18:11) at processImmediate (internal/timers.js:461:21)
For 1 and 3, the delay is too long, but why?
For 2, there is a property problem on « Foreach », but I don’t know why.
For 4, there is an error with the label calendar.next-event.get-location.success in the answers file in English, according to what I understood. But I didn’t modify it.
Did I understand the errors correctly?
What should I do to fix these 4 errors?
Thank you for your help.