freeCodeCamp / freeCodeCamp/devdocs

Unit test frontend code

Open
#2,673 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Ruby
Stars
39.5k
Forks
2.6k
Avg merge
4d 32m
Merged PRs (30d)
13

Description

# Feature request

Cover frontend JavaScript with unit testing.

## Summary

While the Ruby backend core is fully covered by Minitest unit tests, the JavaScript frontend has no testing framework in place. This certainly encouraged past regressions and will continue to do so. It also omits a layer of expected behavior documentation.

Short of committing test framework packages to the repo, this would involve introducing a package.json file solely for dev dependencies. A dependency install step in dev setup instructions would need to be added.

(As an unrelated followup: with this in place, consider migrating vendor dependencies to this file.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.