Skip to content

Incorrect Redis Data Source Naming and Test Helper Generation in CLI #2285

@Tyagi-Sunny

Description

@Tyagi-Sunny

Describe the bug
The CLI currently has multiple issues related to Redis data source handling and test configuration:

  • Incorrect Redis Name in Test Helper:
    The test-helper.ts file generated by the CLI includes an incorrect or default Redis data source name, which leads to broken test setup or runtime errors.

  • Improper Redis Data Source Name:
    The Redis data source name used in the generated files is either missing or not following the expected naming convention, causing inconsistencies in the codebase.

  • Incorrect .nycrc File Generation:
    The generated .nycrc file is either missing required fields or is incorrectly formatted, which impacts test coverage reporting.

  • Datasource Name Missing or Incorrect:
    The actual data source files do not have the correct or expected Redis data source name injected, affecting application behavior and bootstrapping.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions