Categories
Mastering Development

Property ‘toBeInTheDocument’ does not exist on type ‘Matchers

Trying to setup testing for a components library. I’ve tried many example and all similar threads on this with no luck. My setupTests.ts file is correctly being loaded (proven with a console.log), and the library seems to be available as if I add import { toBeInTheDocument } from ‘@testing-library/jest-dom/matchers’ and log toBeInTheDocument it is present. […]

Categories
Mastering Development

Code assistance in PhpStorm for React Native

I’m trying to get some code assistance going for React Native in PhpStorm. It’s working really well out of the box for all properties etc. But I would like to have code assistance help me also with the values of properties. I have added @types/node, @types/react, @types/react-dom and @types/react-native in Settings>Languages & Frameworks>JavaScript>Libraries. But still […]