How to run tests without pro subscription at codepen.io

How to run tests without pro subscription at codepen.io
0

#1

I do not have the pro subscription at codepen.io so I cannot upload my assets (images used in my web page) to it. How should I run the tests? and if I am using github to host the page, on github pages, how do I use the CDN provided to run the tests. I am working on the tribute page right now. Any help will be great. Thanks,


#2

If you want to use codepen you’ll have to upload your media files to some external hosting like cloudinary, postimages.org, etc but not on imgur that doesn’t work with codepen.

If you are using github you just upload your media files there.


#3

I have uploaded my code and images to github. Please help me regarding how to run tests on the page using the cdn provided on the project page.


#4

just add <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> to your page


#5

You’ll actually want to add the tests script as an external resource: https://blog.codepen.io/documentation/editor/adding-external-resources/

You can also fork the pen here: https://codepen.io/freeCodeCamp/pen/MJjpwO