Test in codepen

How do I run the tests in codepen to make sure my project passes?
Saw this in the example page https://codepen.io/freeCodeCamp/full/zNqgVx
note my page is not done yet but here it is.
thank you.

it runs automatically. just continue and write CSS or javascript codes

  • Keep the test script when forking the pen ( <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> ).
    • The test script should be included, with all tests passing, when you submit your projects.
  • Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in HTML. (No need to include the body tags). And it only expect the code you’d put withing the style tags in CSS. (No need to include the style tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.

@anon58011934, it does not run automatically.
User’s have to select the project they are working on and then click the “Run Tests” button.

1 Like