Loading 'nyc' config broken with Cypress 10.x
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cypress, typescript
- Ambito
- testing-qa, tooling
Direzione di ricerca
Inizia dalla riga 26 di task.js, dove il plugin legge la configurazione NYC, e confronta questa ricerca con la directory di lavoro di config-process di Cypress 10 descritta nell’issue. Usa l’issue di Cypress collegata e il repository di riproduzione per verificare il comportamento; l’attività è completata quando il plugin legge le impostazioni NYC dalla radice del progetto in Cypress 10.x.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Logs and screenshots
Versions
- What is this plugin's version? latest
- If the plugin worked before in version X, but stopped after upgrading to version Y, please try the released versions between X and Y to see where the breaking change was.
- What is Cypress version? 10.4.0
- What is your operating system? MacOS 12.5
- What is the shell? bash
- What is the Node version? 16.3.1
- What is the NPM version? 8.3.2
- How do you instrument your application? @cypress/instrument-cra
- When running tests, if you open the web application in regular browser, and open DevTools, do you see
window.__coverage__object? Yes - Is there
.nyc_outputfolder? Is there.nyc_output/out.jsonfile. Is it empty? Can you paste at least part of it so we can see the keys and file paths? - Do you have any custom NYC settings in
package.json(nycobject) or in other NYC config files. Yes, in package.json - Do you run Cypress tests in a Docker container? Yes, but issue is also seen locally, outside of Docker container
Describe the bug
This plugin no longer reads the 'nyc' config inside of {project root}/package.json. This appears to be due to changes in Cypress 10.0: now, the Cypress config file is loaded in a child process with cwd set to the parent dir of the config file, rather than the project root. That means that this code in this plugin will try to load {cypress config dir}/package.json (which doesn't exist for me and probably many others) instead of the on at project root, like with Cypress 9.x.
https://github.com/cypress-io/cypress/issues/22689 has a few more details, including reproduction repo.
Link to the repo
See https://github.com/cypress-io/cypress/issues/22689
- Lingua principale
- TypeScript
- Stelle
- 440
- Fork
- 114
- Merge medio
- 42m
- PR unite (30g)
- 19
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cypress-io/code-coverage
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 40/100
cypress-io/code-coverage#1018 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
cypress-io/code-coverage#993 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
cypress-io/code-coverage#967 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
cypress-io/code-coverage#959 ·
I maintainer di solito rispondono entro 1 giorno
-
performance
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
cypress-io/code-coverage#933 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cypress-io/code-coverage
Issue simili
-
Report: &TV InternationalApertacheck:passed streams:remove
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
bug priority-p1
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
beginner blocked
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
hiero-ledger/hiero-sdk-js#4670 ·
I maintainer di solito rispondono entro 1 giorno
-
[Exploratory] Expense - 2 selected drop-down is shown twice when selecting hold from more option.ApertaMonthly Not a priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Expensify/App#106080 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno