Skip to content

Commit 7f36018

Browse files
authored
fix: use warning admonition (#1435)
1 parent 1a6d263 commit 7f36018

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

Diff for: docs/ecosystem-jest-native.mdx

+14-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ title: jest-native
44
sidebar_label: jest-native
55
---
66

7+
:::warning
8+
9+
**This package is deprecated and is no longer actively maintained.**
10+
11+
We encourage you to migrate to React Native Testing Library, v12.4 or later,
12+
which includes modern
13+
[built-in Jest matchers](https://callstack.github.io/react-native-testing-library/docs/api/jest-matchers)
14+
based on the matchers for this repository. The migration process should be
15+
relatively straightforward, we have a
16+
[migration guide](https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers)
17+
available.
18+
19+
:::
20+
721
[`Jest Native`](https://github.com/testing-library/jest-native) is a companion
822
library for `React Native Testing Library` that provides custom element matchers
923
for Jest.
@@ -30,14 +44,6 @@ expect(queryByTestId('not-empty')).not.toBeEmpty()
3044
> `getByTestId`). Otherwise the `get*` function could throw an error before your
3145
> assertion.
3246
33-
> [!CAUTION]
34-
> **This package is deprecated and is no longer actively maintained.**
35-
>
36-
> 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.
37-
>
38-
> 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.
39-
40-
4147
Check out
4248
[Jest Native's documentation](https://github.com/testing-library/jest-native)
4349
for a full list of available matchers.

0 commit comments

Comments
 (0)