@types/testing-library__cypress is breaking my CI build
See original GitHub issueApparently it tries to download two versions of Cypress simultaneously. One that I defined (“cypress”: “3.8.1”) and one at @types/testing-library__cypress (“cypress”: “^3.5.0”).
Relevant issue at cypress side: https://github.com/cypress-io/cypress/issues/4595.
cypress-testing-library
version: “@testing-library/cypress”: “5.0.2”node
version: 10.18npm
(oryarn
) version: 6.13
CI LOG:
error /app/node_modules/@types/testing-library__cypress/node_modules/cypress: Command failed.
Exit code: 1
Command: node index.js --exec install
Arguments:
Directory: /app/node_modules/@types/testing-library__cypress/node_modules/cypress
Output:
Installing Cypress (version: 3.6.1)
[16:39:59] Downloading Cypress [started]
[16:40:00] Downloading Cypress 0% 0s [title changed]
[16:40:00] Downloading Cypress 3% 3s [title changed]
[16:40:00] Downloading Cypress 4% 5s [title changed]
[16:40:00] Downloading Cypress 4% 8s [title changed]
[16:40:00] Downloading Cypress 5% 8s [title changed]
[16:40:00] Downloading Cypress 6% 8s [title changed]
[16:40:00] Downloading Cypress 7% 9s [title changed]
[16:40:01] Downloading Cypress 8% 9s [title changed]
[16:40:01] Downloading Cypress 9% 9s [title changed]
[16:40:01] Downloading Cypress 10% 9s [title changed]
[16:40:01] Downloading Cypress 12% 8s [title changed]
[16:40:01] Downloading Cypress 13% 8s [title changed]
[16:40:01] Downloading Cypress 13% 9s [title changed]
[16:40:01] Downloading Cypress 14% 9s [title changed]
[16:40:01] Downloading Cypress 15% 9s [title changed]
[16:40:01] Downloading Cypress 15% 10s [title changed]
[16:40:02] Downloading Cypress 16% 9s [title changed]
[16:40:02] Downloading Cypress 18% 9s [title changed]
[16:40:02] Downloading Cypress 19% 9s [title changed]
[16:40:02] Downloading Cypress 21% 8s [title changed]
[16:40:02] Downloading Cypress 22% 8s [title changed]
[16:40:02] Downloading Cypress 24% 7s [title changed]
[16:40:02] Downloading Cypress 25% 7s [title changed]
[16:40:02] Downloading Cypress 26% 7s [title changed]
[16:40:02] Downloading Cypress 27% 7s [title changed]
[16:40:02] Downloading Cypress 29% 7s [title changed]
[16:40:03] Downloading Cypress 31% 6s [title changed]
[16:40:03] Downloading Cypress 34% 6s [title changed]
[16:40:03] Downloading Cypress 35% 6s [title changed]
[16:40:03] Downloading Cypress 36% 6s [title changed]
[16:40:03] Downloading Cypress 39% 5s [title changed]
[16:40:03] Downloading Cypress 40% 5s [title changed]
[16:40:03] Downloading Cypress 45% 4s [title changed]
[16:40:03] Downloading Cypress 47% 4s [title changed]
[16:40:03] Downloading Cypress 60% 2s [title changed]
[16:40:04] Downloading Cypress 73% 1s [title changed]
[16:40:04] Downloading Cypress 85% 1s [title changed]
[16:40:04] Downloading Cypress 100% 0s [title changed]
[16:40:06] Downloading Cypress 100% 0s [failed]
[16:40:06] → The Cypress App could not be downloaded.
Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
Otherwise, please check network connectivity and try again:
----------
URL: https://download.cypress.io/desktop/3.6.1?platform=linux&arch=x64
Error: Corrupted download
Expected downloaded file to have checksum: 1c887ae436316e59f53be57d0c0a8c1e4b483ad40dd7b7e90d2da740f777eb64f93838d09446a2c48cd68f0292d710f1f53a03afff4e0f2d47d410767c90387a
Computed checksum: 47134d7281c1188d04d0cdfb48d0ee5f4ee69342137a3b21c09228362718055bc63eb58f67c69584c709bcba9193c1e094957d83ca6bbd393dd65ea3b5ab090c
Expected downloaded file to have size: 152981007
Computed size: 162396738
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Cypress Testing Library
Cypress Testing Library allows the use of dom-testing queries within.
Read more >Best Practices - Cypress Documentation
We use Testing Library internally, and our philosophy aligns closely with Testing Library's ethos and approach to writing tests. We strongly endorse their...
Read more >Modern React testing, part 4: Cypress and ... - Artem Sapegin
Cypress Testing Library makes Cypress even better: Convenient semantic queries, like finding elements by their label text or ARIA role.
Read more >Build invincible integration tests using Cypress and ... - YouTube
Build invincible integration tests using Cypress and cypress - testing - library ... We'll cover how to locate the brittle parts of your...
Read more >Cypress browser testing leveraging React Testing Library
Specific and reliable selectors are key to make sure tests are resilient against unrelated changes to the component structure breaking existing ...
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
What happened here? It looks like the PR was undone and this types package is still doing a full install of Cypress. We’re seeing two different versions of Cypress in our node_modules because of this. Why aren’t peer dependencies being used?
Thanks @kentcdodds!