Cypress and storybook angular compatibility
See original GitHub issueDescribe the bug
When installing cypress, storybook raises errors
To Reproduce Steps to reproduce the behavior:
- Install storyboard for angular (following tutorial : https://storybook.js.org/basics/guide-angular/)
- Install cypress (npm install cypress --save-dev)
- launch storyboard (start-storybook -p 9001 -c .storybook)
- See errors
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts(25,18):
TS2300: Duplicate identifier 'describe'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts(39,18):
TS2300: Duplicate identifier 'xdescribe'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts(48,18):
TS2300: Duplicate identifier 'it'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasmine/index.d.ts(64,18):
TS2300: Duplicate identifier 'xit'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasminewd2/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasminewd2/index.d.ts(10,18):
TS2300: Duplicate identifier 'it'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasminewd2/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/jasminewd2/index.d.ts(12,18):
TS2300: Duplicate identifier 'xit'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/mocha/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/mocha/index.d.ts(36,13):
TS2300: Duplicate identifier 'describe'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/mocha/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/mocha/index.d.ts(37,13):
TS2300: Duplicate identifier 'xdescribe'.
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/mocha/index.d.ts
ERROR in /home/data/sources/spvie-crm/src/node_modules/@types/mocha/index.d.ts(42,13):
TS2300: Duplicate identifier 'it'.
System:
- OS: ubuntu
- Framework: angular
- Version: 4.1.11
Thanks for your amazing works !
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Cypress and storybook angular compatibility #5488 - GitHub
Describe the bug When installing cypress, storybook raises errors To Reproduce Steps to reproduce the behavior: Install storyboard for ...
Read more >Test your Storybook. Storybook for Angular - Medium
I suppose you already have a Nx — Angular project with Storybook. Here we just talk about Cypress installation for Storybook.
Read more >Set up Storybook for Angular Projects - Nx
The storybook-configuration generator gives the option to set up an e2e Cypress app that is configured to run against the project's Storybook instance....
Read more >NX - Angular Storybook and Cypress Testing - William Huey
Scaffolding for Angular and Storybook with Cypress. First, use npx to localize the install of NX (v11.0.20) and Angular CLI (v11.0.20).
Read more >Nx 14.2 - Angular v14, Storybook update, lightweight Nx and ...
We're glad that the Storybook support for Angular improved a lot over the last couple of releases s.t. we can now directly use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This
.storybook/tsconfig.json
worked for meThe important bits seem to be the
types
andtypeRoots
, and making sure you exclude all your tests.Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!