How to use bundle.js on projects?

For the Responsive Web Design projects, if I want to develop locally instead of in Codepen, I see that there is a CDN to bundle.js.

I opened this file, and examined the contents. I am not sure how to run the tests, though if I am developing locally. Does anyone have advice on how to run the tests for the projects when you develop locally?

Thanks.

1 Like

Hi @s_coder

All you need to do is include the file in a script tag on the main page of your project.

So, just before the closing body tag </body> add: <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>.

The file will inject some html and allow you to chose which project to run the tests against.

4 Likes