freeCodeCamp / freeCodeCamp/devdocs

Unit test frontend code

Offen
#2,673 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature
Vorherrschende Sprache
Ruby
Sterne
39.5k
Forks
2.6k
Ø Merge
4 T. 32 Min.
Gemergte PRs (30 T.)
13

Beschreibung

# 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.)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.