From efe553167352fbf6934116d4e1ef6c1e138cbd81 Mon Sep 17 00:00:00 2001 From: AtofStryker Date: Tue, 26 Nov 2024 10:19:07 -0500 Subject: [PATCH] chore: add angular 19 docs --- docs/app/component-testing/angular/examples.mdx | 4 ++++ docs/app/component-testing/angular/overview.mdx | 4 ++-- docs/app/component-testing/get-started.mdx | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/app/component-testing/angular/examples.mdx b/docs/app/component-testing/angular/examples.mdx index c9fc6ca88d..7eb06323bf 100644 --- a/docs/app/component-testing/angular/examples.mdx +++ b/docs/app/component-testing/angular/examples.mdx @@ -69,6 +69,10 @@ If you need to set up any additional `imports`, `declarations`, or `providers` for your component to mount successfully, you can set them in the options (similar to setting them up in `ngModule` in a app): +:::info +Note: `imports`, `declarations`, or `providers` options do not work with `standalone` components as they are set within the test `ngModule`. This is the default behavior in Angular 19. +::: + ```ts cy.mount(ComponentThatFetchesData, { imports: [HttpClientModule], diff --git a/docs/app/component-testing/angular/overview.mdx b/docs/app/component-testing/angular/overview.mdx index eb233f778c..959d81bc79 100644 --- a/docs/app/component-testing/angular/overview.mdx +++ b/docs/app/component-testing/angular/overview.mdx @@ -119,5 +119,5 @@ export default { #### Sample Angular Apps -- [Angular 17](https://github.com/cypress-io/cypress-component-testing-apps/tree/main/angular) -- [Angular 18 Standalone](https://github.com/cypress-io/cypress-component-testing-apps/tree/main/angular-standalone) +- [Angular 18](https://github.com/cypress-io/cypress-component-testing-apps/tree/main/angular) +- [Angular 19 Standalone](https://github.com/cypress-io/cypress-component-testing-apps/tree/main/angular-standalone) diff --git a/docs/app/component-testing/get-started.mdx b/docs/app/component-testing/get-started.mdx index 5a91c0c125..00e9f997d1 100644 --- a/docs/app/component-testing/get-started.mdx +++ b/docs/app/component-testing/get-started.mdx @@ -45,7 +45,7 @@ following development servers and frameworks: | [Next.js 14-15](/app/component-testing/react/overview#Nextjs) | React 18-19 | Webpack 5 | | [Vue with Vite](/app/component-testing/vue/overview#Vue-with-Vite) | Vue 3 | Vite 4-5 | | [Vue with Webpack](/app/component-testing/vue/overview#Vue-with-Webpack) | Vue 3 | Webpack 4-5 | -| [Angular](/app/component-testing/angular/overview#Framework-Configuration) | Angular 17-18 | Webpack 5 | +| [Angular](/app/component-testing/angular/overview#Framework-Configuration) | Angular 17-19 | Webpack 5 | | [Svelte with Vite](/app/component-testing/svelte/overview#Svelte-with-Vite) Alpha | Svelte 4 | Vite 4-5 | | [Svelte with Webpack](/app/component-testing/svelte/overview#Svelte-with-Webpack) Alpha | Svelte 4 | Webpack 4-5 |