From 37cf43bc75df6cea8d0d96c648635fe6fade120c Mon Sep 17 00:00:00 2001 From: Chirag Date: Sun, 1 Mar 2026 11:59:40 +0000 Subject: [PATCH 1/4] fix renovata toke --- .github/workflows/cross-platform-tests.yml | 1 - .github/workflows/renovate.yml | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/cross-platform-tests.yml b/.github/workflows/cross-platform-tests.yml index c193903..06ea878 100644 --- a/.github/workflows/cross-platform-tests.yml +++ b/.github/workflows/cross-platform-tests.yml @@ -4,7 +4,6 @@ on: push: branches: [main, develop] pull_request: - branches: [main, develop] jobs: test: diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 91544b0..0056d95 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -14,17 +14,8 @@ jobs: renovate: name: Run Renovate Bot runs-on: ubuntu-latest - env: - RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKE }} steps: - - name: Validate Renovate token - if: ${{ env.RENOVATE_TOKEN == '' }} - run: | - echo "RENOVATE_TOKE is not configured." - echo "Set repository secret RENOVATE_TOKE (fine-grained token with Contents: Read/Write and Pull requests: Read/Write)." - exit 1 - - name: Checkout repository uses: actions/checkout@v4 @@ -32,7 +23,7 @@ jobs: uses: renovatebot/github-action@v44.0.3 with: configurationFile: renovate.json - token: ${{ secrets.RENOVATE_TOKE || github.token }} + token: ${{ github.token }} env: LOG_LEVEL: debug RENOVATE_REPOSITORIES: ${{ github.repository }} From 448ca65b2f58de77326545493009c63961ba8c6b Mon Sep 17 00:00:00 2001 From: Chirag Date: Sun, 1 Mar 2026 12:01:35 +0000 Subject: [PATCH 2/4] fix windows failure --- .github/workflows/cross-platform-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cross-platform-tests.yml b/.github/workflows/cross-platform-tests.yml index 06ea878..39102fa 100644 --- a/.github/workflows/cross-platform-tests.yml +++ b/.github/workflows/cross-platform-tests.yml @@ -113,7 +113,7 @@ jobs: # Note: Actual scaffolding test would be interactive # For now, just verify the CLI can be invoked node dist/index.js --help - echo "✓ CLI is executable and responsive" + echo "[OK] CLI is executable and responsive" - name: Test scaffolding (Windows) if: runner.os == 'Windows' @@ -125,7 +125,7 @@ jobs: # Verify the CLI can be invoked node dist/index.js --help - Write-Output "✓ CLI is executable and responsive" + Write-Output "[OK] CLI is executable and responsive" lint: runs-on: ubuntu-latest @@ -174,7 +174,7 @@ jobs: echo "dist/index.js not found" exit 1 fi - echo "✓ Build artifacts verified" + echo "[OK] Build artifacts verified" shell: bash - name: Verify TypeScript definitions @@ -183,5 +183,5 @@ jobs: echo "dist/index.d.ts not found" exit 1 fi - echo "✓ TypeScript definitions verified" + echo "[OK] TypeScript definitions verified" shell: bash From 285dd19f248ac91d57c2df17fa648dccf26cc4f8 Mon Sep 17 00:00:00 2001 From: Chirag Date: Sun, 1 Mar 2026 12:06:25 +0000 Subject: [PATCH 3/4] fix test cases for mac --- .github/workflows/cross-platform-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cross-platform-tests.yml b/.github/workflows/cross-platform-tests.yml index 39102fa..e9808a4 100644 --- a/.github/workflows/cross-platform-tests.yml +++ b/.github/workflows/cross-platform-tests.yml @@ -48,13 +48,13 @@ jobs: run: npm test -- src/__tests__/integration/e2e-scenarios.test.ts - name: Run config builder comprehensive tests - run: npm test -- config-builder-comprehensive.test.ts + run: npm test -- src/__tests__/config-builder.test.ts - name: Run template system comprehensive tests - run: npm test -- template-system-comprehensive.test.ts + run: npm test -- src/__tests__/integration/template-loading.test.ts - name: Run generator comprehensive tests - run: npm test -- generator-comprehensive.test.ts + run: npm test -- src/__tests__/integration/generator.test.ts - name: Test CLI command (Unix) if: runner.os != 'Windows' From a128903dbb50d204da1543f124de0a40c5af0355 Mon Sep 17 00:00:00 2001 From: Chirag Date: Sun, 1 Mar 2026 12:06:48 +0000 Subject: [PATCH 4/4] fix test cases --- COMPREHENSIVE_TESTS.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/COMPREHENSIVE_TESTS.md b/COMPREHENSIVE_TESTS.md index a8257a8..a5684c2 100644 --- a/COMPREHENSIVE_TESTS.md +++ b/COMPREHENSIVE_TESTS.md @@ -6,9 +6,9 @@ Comprehensive testcases have been added to ensure **production-ready quality** a ## New Test Files Added -### 1. **config-builder-comprehensive.test.ts** +### 1. **config-builder.test.ts** -**Location**: `src/__tests__/config-builder-comprehensive.test.ts` +**Location**: `src/__tests__/config-builder.test.ts` Tests the configuration builder and validation system. @@ -30,14 +30,14 @@ Tests the configuration builder and validation system. **Test Cases**: 50+ ```bash -npm test -- config-builder-comprehensive.test.ts +npm test -- config-builder.test.ts ``` --- -### 2. **template-system-comprehensive.test.ts** +### 2. **integration/template-loading.test.ts** -**Location**: `src/__tests__/template-system-comprehensive.test.ts` +**Location**: `src/__tests__/integration/template-loading.test.ts` Tests the template registry and template composition system. @@ -56,14 +56,14 @@ Tests the template registry and template composition system. **Test Cases**: 40+ ```bash -npm test -- template-system-comprehensive.test.ts +npm test -- integration/template-loading.test.ts ``` --- -### 3. **generator-comprehensive.test.ts** +### 3. **integration/generator.test.ts** -**Location**: `src/__tests__/generator-comprehensive.test.ts` +**Location**: `src/__tests__/integration/generator.test.ts` Tests the project generator for actual project creation. @@ -86,7 +86,7 @@ Tests the project generator for actual project creation. **Test Cases**: 50+ ```bash -npm test -- generator-comprehensive.test.ts +npm test -- integration/generator.test.ts ``` --- @@ -189,18 +189,18 @@ npm test -- src/__tests__/integration/e2e-scenarios.test.ts 6. **Config Builder Comprehensive** ``` - npm test -- config-builder-comprehensive.test.ts + npm test -- config-builder.test.ts ``` 7. **Template System Comprehensive** ``` - npm test -- template-system-comprehensive.test.ts + npm test -- integration/template-loading.test.ts ``` 8. **Generator Comprehensive** ``` - npm test -- generator-comprehensive.test.ts + npm test -- integration/generator.test.ts ``` ### CI Matrix @@ -223,9 +223,9 @@ npm test ### Specific Test Suite ```bash -npm test -- config-builder-comprehensive.test.ts -npm test -- template-system-comprehensive.test.ts -npm test -- generator-comprehensive.test.ts +npm test -- config-builder.test.ts +npm test -- integration/template-loading.test.ts +npm test -- integration/generator.test.ts npm test -- src/__tests__/integration/e2e-scenarios.test.ts ``` @@ -310,7 +310,7 @@ The CI workflow automatically: ## What Each Test File Tests -### config-builder-comprehensive.test.ts +### config-builder.test.ts **Purpose**: Ensure configuration system works correctly @@ -326,7 +326,7 @@ Tests: --- -### template-system-comprehensive.test.ts +### integration/template-loading.test.ts **Purpose**: Ensure templates load correctly for all configs @@ -341,7 +341,7 @@ Tests: --- -### generator-comprehensive.test.ts +### integration/generator.test.ts **Purpose**: Ensure projects are generated correctly