From 1915f436181524bb647e55a6b6d1bd395f1ec55d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 20:15:52 +0000 Subject: [PATCH 1/2] Initial plan From 3b353fc6897027be31c8a4ce30d88ea9da1de167 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 20:21:16 +0000 Subject: [PATCH 2/2] docs: remove deprecated jest-native ecosystem page Agent-Logs-Url: https://github.com/testing-library/testing-library-docs/sessions/b1941352-a85b-4f08-bb29-0e9f60c77797 Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com> --- docs/dom-testing-library/install.mdx | 2 - docs/ecosystem-jest-native.mdx | 51 ------------------- .../example-intro.mdx | 2 +- sidebars.js | 1 - 4 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 docs/ecosystem-jest-native.mdx 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',