Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: integration tests for react generator

Aperta
#118 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go, react

Direzione di ricerca

Inizia da test/README.md e confronta i test di integrazione esistenti con l’entry point del generatore React. Predisponi l’app React minima, genera il client e verifica l’integrazione dei componenti e la valutazione dei flag; il lavoro è completato quando il test è incluso nella suite di integrazione e supera CI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue help wanted

feat: integration tests for react generator

Description

The CLI supports an integration testing framework designed to validate that generated feature flag clients are usable and functional within their target environments. Currently, the React generator lacks integration test coverage.

We should create an integration test for the React generator following the structure outlined in the testing documentation.

📄 Relevant Documentation:
Integration Testing Pattern


Tasks
  • Scaffold a minimal React test app (e.g., using create-react-app or Vite)
  • Generate a feature flag client using the React generator
  • Validate that the generated client compiles and integrates with a simple component
  • Write a basic test to verify flag evaluation in the React environment
  • Add the test to the integration test suite and CI
  • Update documentation if needed for React-specific setup

Acceptance Criteria
  • ✅ React generator has at least one integration test
  • ✅ Generated React code integrates into a functional React component
  • ✅ Integration test runs successfully in the CI pipeline
  • ✅ The test adheres to the CLI's integration test pattern

Additional Notes

This test ensures that the React generator produces code that works correctly in a modern front-end stack and helps prevent regressions related to JSX integration or runtime behavior.

Lingua principale
Go
Stelle
63
Fork
22
Merge medio
1h 13m
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di open-feature/cli

Tutte le issue di open-feature/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.