From 184a143f7745c1ec8c0e7d3e447e340f4d11b997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jastrze=CC=A8bski?= Date: Fri, 5 Jun 2026 16:08:44 +0200 Subject: [PATCH 1/4] docs: default website docs to v14 --- website/rspress.config.ts | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/website/rspress.config.ts b/website/rspress.config.ts index 278823fea..f4bc0faac 100644 --- a/website/rspress.config.ts +++ b/website/rspress.config.ts @@ -208,7 +208,7 @@ const sidebar14x = { ], }; -// Default version (13.x) sidebar without version prefix +// Default version (14.x) sidebar without version prefix const sidebarDefault = { '/docs/': [ { @@ -216,6 +216,7 @@ const sidebarDefault = { items: [ { text: 'Introduction', link: '/docs/start/intro' }, { text: 'Quick Start', link: '/docs/start/quick-start' }, + { text: 'v14 Migration', link: '/docs/start/migration-v14' }, ], }, { @@ -250,7 +251,6 @@ const sidebarDefault = { { text: 'How to Query', link: '/docs/guides/how-to-query' }, { text: 'Common Mistakes', link: '/docs/guides/common-mistakes' }, { text: 'LLM Guidelines', link: '/docs/guides/llm-guidelines' }, - { text: 'React 19', link: '/docs/guides/react-19' }, { text: 'Troubleshooting', link: '/docs/guides/troubleshooting' }, { text: 'FAQ', link: '/docs/guides/faq' }, { @@ -270,32 +270,13 @@ const sidebarDefault = { { text: 'Understanding Act', link: '/docs/advanced/understanding-act' }, ], }, - { - text: 'Migration Guides', - collapsed: true, - items: [ - { text: 'v13 Migration', link: '/docs/migration/v13' }, - { text: 'Jest Matchers', link: '/docs/migration/jest-matchers' }, - { - text: 'Previous versions', - collapsed: true, - items: [ - { text: 'v12', link: '/docs/migration/previous/v12' }, - { text: 'v11', link: '/docs/migration/previous/v11' }, - { text: 'v9', link: '/docs/migration/previous/v9' }, - { text: 'v7', link: '/docs/migration/previous/v7' }, - { text: 'v2', link: '/docs/migration/previous/v2' }, - ], - }, - ], - }, ], '/cookbook/': [ { text: 'Cookbook', link: '/cookbook/' }, { text: 'Basic Recipes', items: [ - { text: 'Async Tests', link: '/cookbook/basics/async-tests' }, + { text: 'Async Events', link: '/cookbook/basics/async-events' }, { text: 'Custom Render', link: '/cookbook/basics/custom-render' }, ], }, @@ -332,7 +313,7 @@ export default defineConfig({ // Shiki is now the default code highlighter }, multiVersion: { - default: '13.x', + default: '14.x', versions: ['12.x', '13.x', '14.x'], }, route: { From 687d7bfd17ef43fb91cab3116cde2869e92352cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jastrze=CC=A8bski?= Date: Fri, 5 Jun 2026 16:09:10 +0200 Subject: [PATCH 2/4] docs: update version banners for v14 stable --- website/theme/index.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/website/theme/index.tsx b/website/theme/index.tsx index 93498917c..822b7573d 100644 --- a/website/theme/index.tsx +++ b/website/theme/index.tsx @@ -1,15 +1,7 @@ import { useLocation } from '@rspress/core/runtime'; import { Link, Layout as RspressLayout } from '@rspress/core/theme-original'; -const LATEST_VERSION = '13.x'; - -const PreReleaseBanner = () => ( -
- - You are viewing documentation for v14 RC. - -
-); +const LATEST_VERSION = '14.x'; const OldVersionBanner = ({ version }: { version: string }) => (
@@ -26,12 +18,9 @@ const OldVersionBanner = ({ version }: { version: string }) => ( const AnnouncementBanner = () => { const { pathname } = useLocation(); - if (pathname.includes('/14.x/')) { - return ; - } - - if (pathname.includes('/12.x/')) { - return ; + if (pathname.includes('/12.x/') || pathname.includes('/13.x/')) { + const version = pathname.includes('/12.x/') ? '12.x' : '13.x'; + return ; } return null; From 46fe2a3de2de3e5e78b61dc210f13f5179dc581f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jastrze=CC=A8bski?= Date: Fri, 5 Jun 2026 16:09:21 +0200 Subject: [PATCH 3/4] docs: use stable v14 install command --- docs/guides/quick-start.md | 8 ++++---- website/docs/14.x/docs/start/quick-start.mdx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/guides/quick-start.md b/docs/guides/quick-start.md index 42874c863..5342c07eb 100644 --- a/docs/guides/quick-start.md +++ b/docs/guides/quick-start.md @@ -8,10 +8,10 @@ Open a Terminal in your project's folder and run: diff --git a/website/docs/14.x/docs/start/quick-start.mdx b/website/docs/14.x/docs/start/quick-start.mdx index dafcebb96..506a5a1c9 100644 --- a/website/docs/14.x/docs/start/quick-start.mdx +++ b/website/docs/14.x/docs/start/quick-start.mdx @@ -8,10 +8,10 @@ Open a Terminal in your project's folder and run: From 96b5598267d400f7771b60262a5621b1b0972754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jastrze=CC=A8bski?= Date: Fri, 5 Jun 2026 16:13:10 +0200 Subject: [PATCH 4/4] docs: fix v14 migration link in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a165e97a..1d94992ea 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ React Native Testing Library consists of following APIs: ## Migration Guides -- **[Migration to 14.0](https://oss.callstack.com/react-native-testing-library/docs/migration/v14)** - Drops React 18, async APIs by default +- **[Migration to 14.0](https://oss.callstack.com/react-native-testing-library/docs/start/migration-v14)** - Drops React 18, async APIs by default ## Troubleshooting