diff --git a/docs/dom-testing-library/install.mdx b/docs/dom-testing-library/install.mdx index 903a0325f..4e1cbd348 100644 --- a/docs/dom-testing-library/install.mdx +++ b/docs/dom-testing-library/install.mdx @@ -38,8 +38,6 @@ install the wrapper: - [jest-dom](ecosystem-jest-dom.mdx) custom Jest matchers - [bs-jest-dom](ecosystem-bs-jest-dom.mdx) companion library for `bs-react-testing-library` -- [jest-native](ecosystem-jest-native.mdx) companion library for - `React Native Testing Library` - [react-select-event](ecosystem-react-select-event.mdx) companion library for `React Testing Library` - [eslint-plugin-testing-library](ecosystem-eslint-plugin-testing-library.mdx) diff --git a/docs/ecosystem-jest-native.mdx b/docs/ecosystem-jest-native.mdx deleted file mode 100644 index b201e8a9f..000000000 --- a/docs/ecosystem-jest-native.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -id: ecosystem-jest-native -title: jest-native -sidebar_label: jest-native ---- - -:::warning - -**This package is deprecated and is no longer actively maintained.** - -We encourage you to migrate to React Native Testing Library, v12.4 or later, -which includes modern -[built-in Jest matchers](https://callstack.github.io/react-native-testing-library/docs/api/jest-matchers) -based on the matchers for this repository. The migration process should be -relatively straightforward, we have a -[migration guide](https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers) -available. - -::: - -[`Jest Native`](https://github.com/testing-library/jest-native) is a companion -library for `React Native Testing Library` that provides custom element matchers -for Jest. - -```bash npm2yarn -npm install --save-dev @testing-library/jest-native -``` - -```jsx -const {queryByTestId} = render( - - - - - Visible Example - , -) - -expect(queryByTestId('not-empty')).not.toBeEmpty() -``` - -> Note: when using some of these matchers, you may need to make sure you use a -> query function (like `queryByTestId`) rather than a get function (like -> `getByTestId`). Otherwise the `get*` function could throw an error before your -> assertion. - -Check out -[Jest Native's documentation](https://github.com/testing-library/jest-native) -for a full list of available matchers. - -- [Jest Native on GitHub](https://github.com/testing-library/jest-native) diff --git a/docs/react-native-testing-library/example-intro.mdx b/docs/react-native-testing-library/example-intro.mdx index e6724ebd1..6bef64871 100644 --- a/docs/react-native-testing-library/example-intro.mdx +++ b/docs/react-native-testing-library/example-intro.mdx @@ -42,7 +42,7 @@ test('examples of some things', async () => { // Using `findBy` query to wait for asynchronous operation to finish const usernameOutput = await screen.findByTestId('printed-username') - // Using `toHaveTextContent` matcher from `@testing-library/jest-native` package. + // Using the built-in `toHaveTextContent` matcher from React Native Testing Library. expect(usernameOutput).toHaveTextContent(expectedUsername) expect(screen.toJSON()).toMatchSnapshot() diff --git a/sidebars.js b/sidebars.js index dcae3a205..b53ce88e5 100755 --- a/sidebars.js +++ b/sidebars.js @@ -208,7 +208,6 @@ module.exports = { Ecosystem: [ 'ecosystem-jest-dom', 'ecosystem-bs-jest-dom', - 'ecosystem-jest-native', 'ecosystem-react-select-event', 'ecosystem-eslint-plugin-testing-library', 'ecosystem-eslint-plugin-jest-dom',