Skip to content

CRA 5 upgrade #13275

@nikgun1984

Description

@nikgun1984

Hi,

I recently upgraded react-scripts to v5, which added bunch of breaking changes, including to jest. My useFakeTimers no longer work. When I run my tests it stops running it throws the error "Exceeded timeout of 10000". If add timeout to longer time, my test just hangs. I tried to upgrade jest to 29 but now I am getting "ReferenceError: TextEncoder is not defined". Does anyone have similar issues? Seems breaking happens for jest27 just like documentation mentions? I tried to downgrade to previous jest version but my fakeTimers still not working. Can anyone help to figure it out?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions