You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a test following the documentation, but TypeScript shows me an error saying that I can't assign values to a read-only property
Steps to reproduce:
Create a test file (.spec.tsx)
Write an assertion trying to update any rdd variable
--
--
Code:
// Component.spec.tsximport*asrddfrom'react-device-detect'it('Should render correctly',()=>{rdd.isSafari=true// Cannot assign to 'isSafari' because it is a read-only property// test here...})
--
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: