# How to setup component testing in CY8 CLI

**URL:** <https://community.cumulocity.com/t/how-to-setup-component-testing-in-cy8-cli/952>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [November 1, 2023, 2:05pm UTC](https://community.cumulocity.com/t/how-to-setup-component-testing-in-cy8-cli/952 "2023-11-01T14:05:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luclib](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@luclib](https://community.cumulocity.com/u/luclib)\
**Post date:** [November 1, 2023, 2:05pm UTC](https://community.cumulocity.com/t/how-to-setup-component-testing-in-cy8-cli/952/1 "2023-11-01T14:05:10Z")

</div>

This is a follow-up to my last [post](https://community.cumulocity.com/t/recommended-e2e-testing-framework/3676) concerning installing Cypress in an C8Y project.

I have installed an earlier version of Cypress and can run end-to-end tests in my application. Now, I want to move on to component testing.

However, when I open the Cypress window with the `cypress open` command, then select the option to configure component testing, it asks me to select from a list of front-end frameworks.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/2/b/2b02db8257a3ceb39e4c747af00d60f50e36df63.png)

Naturally, I selected Angular, but on the next page they ask me to install some of the core packages for vanilla angular that I know I can’t use when developing with the C8Y CLI.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/c/a/caf0c4e8dac6172cb64bf570b524a24eca9986f0.png)

What are the specific steps needed to set up component testing in Cumulocity?

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [November 2, 2023, 7:36am UTC](https://community.cumulocity.com/t/how-to-setup-component-testing-in-cy8-cli/952/2 "2023-11-02T07:36:52Z")

</div>

Hi Lucas,

Cypress component testing does currently not really work with Cumulocity WebSDK projects based on `@c8y/cli`. There may be some workaround by introducing an `angular.json` file into your project, but this is nothing that we support/give you guidelines for.

We are currently working on deprecating the `@c8y/cli` and switching/extending the angular cli. Once this is done, component testing should be possible just like with a standard angular project.

Regards,  
Tristan

---

<div class="post-metadata">

**Author:** ![luclib](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@luclib](https://community.cumulocity.com/u/luclib)\
**Post date:** [November 2, 2023, 12:39pm UTC](https://community.cumulocity.com/t/how-to-setup-component-testing-in-cy8-cli/952/3 "2023-11-02T12:39:39Z")

</div>

Thank you, Tristan.

Is there a timeline for when this new version of the Angular CLI will be released?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 30, 2024, 12:40pm UTC](https://community.cumulocity.com/t/how-to-setup-component-testing-in-cy8-cli/952/4 "2024-04-30T12:40:14Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
