v8 test coverage in jest is incorrect when upgrading to 20.10.0
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 122k
- Fork
- 37.3k
- Merge medio
- 4g 2h
- PR unite (30g)
- 283
Descrizione
Version
20.10.0
Platform
Macbook Pro M1/M2 / Ubuntu 22.04 x64 (GitHub runner)
Subsystem
V8
What steps will reproduce the bug?
See https://github.com/jestjs/jest/issues/14766
How often does it reproduce? Is there a required condition?
Found a consistent repro, but initially it was flaky because of the order jest was running tests.
What is the expected behavior? Why is that the expected behavior?
20.9.0 just works
20.10.0 fails
So this is a regression.
What do you see instead?
Coverage information is wrong in jest, unclear why, but based what we know Node is the place where this will most likely be fixed.
Additional information
Based on https://nodejs.org/en/blog/release/v20.10.0, cc @joyeecheung as you might be interested/know what's wrong.
Based on https://github.com/jestjs/jest/issues/14764, cc @kwmhp as you experienced the same problem as us, and figure out the version upgrade is what triggers it.
Guida per i contributori
Apri la 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.
Direzione di ricerca
Inizia con le riproduzioni Jest collegate e confronta il comportamento della coverage tra Node 20.9.0 e 20.10.0 sulle piattaforme MacBook e Ubuntu elencate. Leggi le note di rilascio di Node v20.10.0 e determina se la regressione si riproduce in Node stesso; il lavoro è completato quando l'output della coverage è corretto nella condizione di ordine dei test riportata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- backend, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 42/100