diff --git a/CHANGELOG.md b/CHANGELOG.md index d2f44a5dc..6494faf99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +# [14.6.6](https://github.com/IgniteUI/igniteui-cli/compare/v14.6.5...v14.6.6) (2025-11-12) + +## What's Changed +* Update github pages workflow step by @Hristo313 in https://github.com/IgniteUI/igniteui-cli/pull/1452 +* Update react test setup configuration by @Hristo313 in https://github.com/IgniteUI/igniteui-cli/pull/1453 + +**Full Changelog**: https://github.com/IgniteUI/igniteui-cli/compare/v14.6.5...v14.6.6 + +# [14.6.5](https://github.com/IgniteUI/igniteui-cli/compare/v14.6.4...v14.6.5) (2025-11-10) + +## What's Changed + +* ci(react): install Playwright in the YAML file by @Lipata in https://github.com/IgniteUI/igniteui-cli/pull/1450 +* build(deps): bump eazy-logger from 4.0.1 to 4.1.0 in the npm_and_yarn group across 1 directory by @dependabot[bot] in https://github.com/IgniteUI/igniteui-cli/pull/1436 + + +**Full Changelog**: https://github.com/IgniteUI/igniteui-cli/compare/v14.6.4...v14.6.5 + # [14.6.4](https://github.com/IgniteUI/igniteui-cli/compare/v14.6.3...v14.6.4) (2025-10-14) ## What's Changed diff --git a/packages/cli/package.json b/packages/cli/package.json index 107807e03..469d41614 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "igniteui-cli", - "version": "14.6.5-beta.0", + "version": "14.6.6", "description": "CLI tool for creating Ignite UI projects", "keywords": [ "CLI", @@ -76,8 +76,8 @@ "all": true }, "dependencies": { - "@igniteui/angular-templates": "~20.1.1465-beta.0", - "@igniteui/cli-core": "~14.6.5-beta.0", + "@igniteui/angular-templates": "~20.1.1466", + "@igniteui/cli-core": "~14.6.6", "@inquirer/prompts": "^7.9.0", "@types/yargs": "^17.0.33", "chalk": "^5.3.0", diff --git a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__azure/azure-pipelines.yml b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__azure/azure-pipelines.yml index f54ce8ee5..673ba184f 100644 --- a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__azure/azure-pipelines.yml +++ b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__azure/azure-pipelines.yml @@ -19,5 +19,9 @@ steps: continueOnError: true - script: npm run build displayName: 'Build the project' + - script: npx playwright install chromium-headless-shell + displayName: 'Install Playwright browsers' - script: npm run test displayName: 'Run tests' + env: + CI: 'true' diff --git a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml index e2f064061..6263ead94 100644 --- a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml +++ b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml @@ -39,7 +39,7 @@ jobs: find ./dist/assets -type f -name "*.js" -exec sed -i 's|src/assets|${{ github.event.repository.name }}/assets|g' {} +; find ./dist/assets -type f -name "*.js" -exec sed -i 's|/static-data/|/${{ github.event.repository.name }}/static-data/|g' {} + - name: Copy Resources to dist - run: mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/ + run: if [ -d "./src/assets" ]; then mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/; fi - name: SPA routing handling run: cp ./dist/index.html ./dist/404.html - name: Upload build artifact to GitHub Pages diff --git a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/node.js.yml b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/node.js.yml index 161dbc00e..08c9b9fc4 100644 --- a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/node.js.yml +++ b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/node.js.yml @@ -29,5 +29,8 @@ jobs: - run: npm i # replace with 'npm ci' after committing lock file from first install # - run: npm run lint - run: npm run build + - name: Install Playwright browsers + run: npx playwright install chromium-headless-shell - run: npm run test - + env: + CI: 'true' diff --git a/packages/cli/templates/react/igr-ts/projects/_base/files/src/setupTests.ts b/packages/cli/templates/react/igr-ts/projects/_base/files/src/setupTests.ts index 38ac68997..98c4abf7e 100644 --- a/packages/cli/templates/react/igr-ts/projects/_base/files/src/setupTests.ts +++ b/packages/cli/templates/react/igr-ts/projects/_base/files/src/setupTests.ts @@ -1,11 +1,9 @@ -import '@testing-library/jest-dom' -import 'vitest-canvas-mock' import ResizeObserver from 'resize-observer-polyfill' import {vi} from 'vitest' -global.ResizeObserver = ResizeObserver; +globalThis.ResizeObserver = ResizeObserver; HTMLElement.prototype.scrollIntoView = vi.fn(); HTMLElement.prototype.hidePopover = vi.fn(); HTMLElement.prototype.showPopover = vi.fn(); -HTMLElement.prototype.togglePopover = vi.fn(); \ No newline at end of file +HTMLElement.prototype.togglePopover = vi.fn(); diff --git a/packages/cli/templates/react/igr-ts/projects/_base/files/vite.config.ts b/packages/cli/templates/react/igr-ts/projects/_base/files/vite.config.ts index 3ab0c945e..8dec3de5f 100644 --- a/packages/cli/templates/react/igr-ts/projects/_base/files/vite.config.ts +++ b/packages/cli/templates/react/igr-ts/projects/_base/files/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ }, ], }, + setupFiles: ['./src/setupTests.ts'] }, resolve: { mainFields: ['module'], diff --git a/packages/core/package.json b/packages/core/package.json index 1684e4a38..040785f2c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@igniteui/cli-core", - "version": "14.6.5-beta.0", + "version": "14.6.6", "description": "Base types and functionality for Ignite UI CLI", "repository": { "type": "git", diff --git a/packages/igx-templates/package.json b/packages/igx-templates/package.json index 0cfe5eb7e..68a4c20c1 100644 --- a/packages/igx-templates/package.json +++ b/packages/igx-templates/package.json @@ -1,6 +1,6 @@ { "name": "@igniteui/angular-templates", - "version": "20.1.1465-beta.0", + "version": "20.1.1466", "description": "Templates for Ignite UI for Angular projects and components", "repository": { "type": "git", @@ -12,7 +12,7 @@ "author": "Infragistics", "license": "MIT", "dependencies": { - "@igniteui/cli-core": "~14.6.5-beta.0", + "@igniteui/cli-core": "~14.6.6", "typescript": "~5.5.4" } } diff --git a/packages/ng-schematics/package.json b/packages/ng-schematics/package.json index 7da739fbd..b69b35324 100644 --- a/packages/ng-schematics/package.json +++ b/packages/ng-schematics/package.json @@ -1,6 +1,6 @@ { "name": "@igniteui/angular-schematics", - "version": "20.1.1465-beta.0", + "version": "20.1.1466", "description": "Ignite UI for Angular Schematics for ng new and ng generate", "repository": { "type": "git", @@ -20,8 +20,8 @@ "dependencies": { "@angular-devkit/core": "^19.0.0", "@angular-devkit/schematics": "^19.0.0", - "@igniteui/angular-templates": "~20.1.1465-beta.0", - "@igniteui/cli-core": "~14.6.5-beta.0", + "@igniteui/angular-templates": "~20.1.1466", + "@igniteui/cli-core": "~14.6.6", "@schematics/angular": "~19.0.0", "minimatch": "^10.0.1", "rxjs": "^7.8.1"