So I decided to try and start contributing to the open source project, I’ve cloned the repository, configured everything, wrote my first line of code and ran npm run test --block=basic-javascript. The tests themselves, along with the test suits and snapshots passed, but I got some errors and don’t know if I should be concerned about them:
Test Suites: 98 passed, 98 total
Tests: 652 passed, 652 total
Snapshots: 30 passed, 30 total
Time: 10.789 s, estimated 14 s
Ran all test suites.
> @freecodecamp/freecodecamp@0.0.1 test:curriculum
> cd ./curriculum && npm test
> @freecodecamp/curriculum@0.0.0-next.4 test
> mocha --delay --exit --reporter progress --bail
Uncaught exception: Failed to launch the browser process!
/home/tarabryn/open_source_contributions/freeCodeCamp/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Error: Failed to launch the browser process!
/home/tarabryn/open_source_contributions/freeCodeCamp/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
at onClose (/home/tarabryn/open_source_contributions/freeCodeCamp/node_modules/puppeteer/src/node/BrowserRunner.ts:223:9)
at Interface.<anonymous> (/home/tarabryn/open_source_contributions/freeCodeCamp/node_modules/puppeteer/src/node/BrowserRunner.ts:209:50)
at Interface.emit (node:events:532:35)
at Interface.close (node:readline:586:8)
at Socket.onend (node:readline:277:10)
at Socket.emit (node:events:532:35)
at endReadableNT (node:internal/streams/readable:1346:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! Lifecycle script `test` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @freecodecamp/curriculum@0.0.0-next.4
npm ERR! at location: /home/tarabryn/open_source_contributions/freeCodeCamp/curriculum
ERROR: "test:curriculum" exited with 1.
Hello, I already have MongoDB running in docker. I’m assuming I only need to seed it once correct? I seeded it before starting so I could test the code in the browser.
There are two differences betweem what you put here and what I did:
instead of using npm run develop:server and npm run develop:client I just ran the one line npm run develop.
instead of using --block="Basic Javascript" I used --block=basic-javascript.
I tried running it as you suggested and got the same error.
I’ve been contributing on gitpod and I’ve been needing to run npm run cypress:install-build-tools before i can run tests using npm run test:curriculum.
Is this something that can be automated using gitpod.yml?