Skip to content

test: Add comprehensive test suite for conditionalGeneration.js #1970

@shivansh-source

Description

@shivansh-source

The lib/conditionalGeneration.js module currently has no test coverage, despite being a critical component that handles conditional file and folder generation based on template configuration. This module contains complex logic for evaluating conditions and determining whether files should be rendered during code generation.

This lack of test coverage poses risks:

Potential regressions when refactoring or adding features
Difficulty understanding expected behavior from code alone
Lower overall code quality and maintainability
Risk of breaking changes going undetected

Related Issues

#1553 - Remove deprecated conditionalFiles configuration

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