From 987102f79864069067d1d3590119be141bd3ea1a Mon Sep 17 00:00:00 2001 From: paulreece <96156234+paulreece@users.noreply.github.com> Date: Wed, 28 Sep 2022 02:50:50 -0400 Subject: [PATCH] docs: React Native tutorial admonitions (#13308) Co-authored-by: Tom Mrazauskas --- docs/TutorialReactNative.md | 8 ++++++-- .../versioned_docs/version-25.x/TutorialReactNative.md | 8 ++++++-- .../versioned_docs/version-26.x/TutorialReactNative.md | 8 ++++++-- .../versioned_docs/version-27.x/TutorialReactNative.md | 8 ++++++-- .../versioned_docs/version-28.x/TutorialReactNative.md | 8 ++++++-- .../versioned_docs/version-29.0/TutorialReactNative.md | 8 ++++++-- 6 files changed, 36 insertions(+), 12 deletions(-) diff --git a/docs/TutorialReactNative.md b/docs/TutorialReactNative.md index ddb60b230c31..b2b653078a85 100644 --- a/docs/TutorialReactNative.md +++ b/docs/TutorialReactNative.md @@ -22,10 +22,14 @@ Starting from react-native version 0.38, a Jest setup is included by default whe } ``` -_Note: If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead._ - Run `yarn test` to run tests with Jest. +:::tip + +If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead. + +::: + ## Snapshot Test Let's create a [snapshot test](SnapshotTesting.md) for a small intro component with a few views and text components and some styles: diff --git a/website/versioned_docs/version-25.x/TutorialReactNative.md b/website/versioned_docs/version-25.x/TutorialReactNative.md index 18b740a54290..89da13d6e59c 100644 --- a/website/versioned_docs/version-25.x/TutorialReactNative.md +++ b/website/versioned_docs/version-25.x/TutorialReactNative.md @@ -22,10 +22,14 @@ Starting from react-native version 0.38, a Jest setup is included by default whe } ``` -_Note: If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead._ - Run `yarn test` to run tests with Jest. +:::tip + +If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead.\_ + +::: + ## Snapshot Test Let's create a [snapshot test](SnapshotTesting.md) for a small intro component with a few views and text components and some styles: diff --git a/website/versioned_docs/version-26.x/TutorialReactNative.md b/website/versioned_docs/version-26.x/TutorialReactNative.md index 18b740a54290..89da13d6e59c 100644 --- a/website/versioned_docs/version-26.x/TutorialReactNative.md +++ b/website/versioned_docs/version-26.x/TutorialReactNative.md @@ -22,10 +22,14 @@ Starting from react-native version 0.38, a Jest setup is included by default whe } ``` -_Note: If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead._ - Run `yarn test` to run tests with Jest. +:::tip + +If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead.\_ + +::: + ## Snapshot Test Let's create a [snapshot test](SnapshotTesting.md) for a small intro component with a few views and text components and some styles: diff --git a/website/versioned_docs/version-27.x/TutorialReactNative.md b/website/versioned_docs/version-27.x/TutorialReactNative.md index ddb60b230c31..c5a31d55a5bb 100644 --- a/website/versioned_docs/version-27.x/TutorialReactNative.md +++ b/website/versioned_docs/version-27.x/TutorialReactNative.md @@ -22,10 +22,14 @@ Starting from react-native version 0.38, a Jest setup is included by default whe } ``` -_Note: If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead._ - Run `yarn test` to run tests with Jest. +:::tip + +If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead.\_ + +::: + ## Snapshot Test Let's create a [snapshot test](SnapshotTesting.md) for a small intro component with a few views and text components and some styles: diff --git a/website/versioned_docs/version-28.x/TutorialReactNative.md b/website/versioned_docs/version-28.x/TutorialReactNative.md index ddb60b230c31..c5a31d55a5bb 100644 --- a/website/versioned_docs/version-28.x/TutorialReactNative.md +++ b/website/versioned_docs/version-28.x/TutorialReactNative.md @@ -22,10 +22,14 @@ Starting from react-native version 0.38, a Jest setup is included by default whe } ``` -_Note: If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead._ - Run `yarn test` to run tests with Jest. +:::tip + +If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead.\_ + +::: + ## Snapshot Test Let's create a [snapshot test](SnapshotTesting.md) for a small intro component with a few views and text components and some styles: diff --git a/website/versioned_docs/version-29.0/TutorialReactNative.md b/website/versioned_docs/version-29.0/TutorialReactNative.md index ddb60b230c31..c5a31d55a5bb 100644 --- a/website/versioned_docs/version-29.0/TutorialReactNative.md +++ b/website/versioned_docs/version-29.0/TutorialReactNative.md @@ -22,10 +22,14 @@ Starting from react-native version 0.38, a Jest setup is included by default whe } ``` -_Note: If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead._ - Run `yarn test` to run tests with Jest. +:::tip + +If you are upgrading your react-native application and previously used the `jest-react-native` preset, remove the dependency from your `package.json` file and change the preset to `react-native` instead.\_ + +::: + ## Snapshot Test Let's create a [snapshot test](SnapshotTesting.md) for a small intro component with a few views and text components and some styles: