toBeInTheDocument not working in Jest
If you are using Jest, toBeInTheDocument does not seem to work. Google and GPT suggest a lot of things. But what works is adding an import in each test file.
import '@testing-library/jest-dom/jest-globals';
For some reason, adding it to the test set...
vijayt.hashnode.dev1 min read