Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

116
Visualizações
Updating create-react-app to latest version breaks async tests

I have an issue, I have recently upgraded my version of react to use react-script version 5.0.1 from version 4.0.3. Doing the instructions as per https://github.com/facebook/create-react-app/blob/main/CHANGELOG.md

Upon doing this. I can see it had an upgrade for Jest 27. However now it has broken my async/await unit tests, I can see the issue was here: https://github.com/facebook/create-react-app/issues/10747

But it does not detail anywhere, how I can resolve this issue now, I can see it is for the async await tests that use MSW.

Has anyone encountered this or can shed some light on how to resolve?

Example test:

it('Should test data', async () => { render(<App />); 
const text = await screen.findByText('myTitle');
expect(tagText).toBeInTheDocument(); });
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda