open-feature / open-feature/cli

feat: integration tests for nestjs generator

Open
#116 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted
Dominant language
Go
Stars
63
Forks
22
Avg merge
1h 27m
Merged PRs (30d)
19

Description

feat: integration tests for nestjs generator

Description

We have introduced a standardized integration testing pattern to validate that generated feature flag clients are both compilable and usable within their intended language or framework ecosystems. The NestJS generator currently does not have integration test coverage.

We should add integration tests for the NestJS generator using the structure and methodology described in the CLI's testing documentation.

📄 Relevant Documentation:
Integration Testing Pattern


Tasks
  • Scaffold a minimal NestJS test project (e.g., using @nestjs/cli)
  • Use the NestJS generator to produce a feature flag client
  • Validate that the generated code builds, integrates into a NestJS module, and executes a sample flag evaluation
  • Add this test to the integration test suite and ensure it runs in CI
  • Update test documentation if any NestJS-specific considerations arise

Acceptance Criteria
  • ✅ NestJS generator is covered by at least one integration test
  • ✅ Generated NestJS client compiles and integrates into a real app
  • ✅ Integration test runs automatically in CI
  • ✅ Test conforms to the documented integration testing pattern

Additional Notes

This test will help prevent regressions and ensure confidence that the NestJS generator produces valid, working clients suitable for real-world usage.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/README.md and the existing integration tests to follow the documented pattern for the NestJS generator. Scaffold the minimal NestJS project, generate the client, verify compilation, module integration, and sample flag evaluation, then confirm the test runs in CI and update documentation if needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
ci-cd, cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.