Quality Assurance Projects - Issue Tracker

Tell us what’s happening:
Tests are not valid:
Error: Cannot find module ‘./lib/http’
Require stack:

  • /home/runner/boilerplate-project-issuetracker/node_modules/chai-http/index.js
  • /home/runner/boilerplate-project-issuetracker/tests/2_functional-tests.js
  • /home/runner/boilerplate-project-issuetracker/node_modules/mocha/lib/mocha.js
  • /home/runner/boilerplate-project-issuetracker/node_modules/mocha/index.js
  • /home/runner/boilerplate-project-issuetracker/test-runner.js
  • /home/runner/boilerplate-project-issuetracker/routes/fcctesting.js
  • /home/runner/boilerplate-project-issuetracker/server.js

Your project link(s)

solution: boilerplate-project-issuetracker - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Quality Assurance Projects - Issue Tracker

Link to the challenge:

I typed “npm i npm@latest” and “npm i ./lib/http@latest” in shell, not work, does my code need ‘./lib/http’ module? thanks advance for anybody’s help!

it seems to be a problem related to the chai-http module.

npm install chai-http

Thanks for your reply, In package.json “chai-http”: “^4.3.0” was already installed.

you can try deleting your ‘node_modules’ directory and install them agen

rm -rf node_modules
npm install

1 Like

Amazing! the test function has restored, thank you so much!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.