Skip to content

docs: add challenge files template#1244

Merged
ojeytonwilliams merged 21 commits intofreeCodeCamp:mainfrom
majestic-owl448:docs/challenge-md-templates
Mar 13, 2026
Merged

docs: add challenge files template#1244
ojeytonwilliams merged 21 commits intofreeCodeCamp:mainfrom
majestic-owl448:docs/challenge-md-templates

Conversation

@majestic-owl448
Copy link
Contributor

Checklist:

Related to #1200

This one aims to make some clarity on the general shape of the challenges, and which challengeType can be used for what

@majestic-owl448 majestic-owl448 requested a review from a team as a code owner March 11, 2026 20:45
@majestic-owl448 majestic-owl448 changed the title Docs/challenge md templates docs: add challenge files template Mar 11, 2026
@majestic-owl448 majestic-owl448 marked this pull request as draft March 11, 2026 20:45
@majestic-owl448
Copy link
Contributor Author

I forgot about the hooks, adding those too

Documents --before-all--, --before-each--, --after-each--, and --after-all--
hooks: which challengeTypes support them, execution order, and how DOM
challenges (iframe) differ from non-DOM challenges (Web Worker).
@majestic-owl448 majestic-owl448 marked this pull request as ready for review March 12, 2026 09:41
Co-authored-by: Jeevankumar S <jeevenkumar2003@gmail.com>
Copy link
Contributor

@ojeytonwilliams ojeytonwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this, @majestic-owl448 I'm sure this will be very helpful.

Copy link
Member

@Jeevankumar-s Jeevankumar-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Variables declared in --before-all-- are not in scope during isolated
tests. State must be assigned to globalThis to persist across tests.
Copy link
Contributor

@ojeytonwilliams ojeytonwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nitpicks, overall this looks great 👍

majestic-owl448 and others added 2 commits March 13, 2026 17:25
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
@ojeytonwilliams ojeytonwilliams merged commit 1ad4530 into freeCodeCamp:main Mar 13, 2026
4 checks passed
@majestic-owl448 majestic-owl448 deleted the docs/challenge-md-templates branch March 13, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants