Extend Jest matchers with @testing-library/jest-native
mainTo use the custom matchers in your tests, you can either extend Jest globally or selectively.
Global Extension
Import @testing-library/jest-native/extend-expect once in your Jest setup file (e.g., the file configured in setupFilesAfterEnv).
Selective Extension
Import only the specific matchers you need and use expect.extend() to add them to Jest manually.
// Option 1: Global extension (recommended for setup files)
import '@testing-library/jest-native/extend-expect';
// Option 2: Selective extension
import { toBeEmptyElement, toHaveTextContent } from '@testing-library/jest-native';
expect.extend({ toBeEmptyElement, toHaveTextContent });