testing-library / react-testing-library

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

Home Page:https://testing-library.com/react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React test suits fail with SyntaxError: Illegal break statement

rimpu opened this issue · comments

commented

image

image

I have started to get this error. These are the set of packages I am using.

image

Please advise how to solve the same.

As a workaround, override the latest version of nwsapi which seems to be causing this issue.

If using npm, add following to the package.json and do npm i.

"overrides": {
    "nwsapi": "2.2.5"
}

Thanks @mbaric1.
I'm closing this one as it's not related to us directly, here's a bug for future reference: dperini/nwsapi#90.