mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
"use strict";(self.rspackChunkwebsite=self.rspackChunkwebsite||[]).push([["8187"],{6822(e,n,t){t.r(n),t.d(n,{default:()=>i});var s=t(4848),o=t(8453);function r(e){let n={a:"a",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.h1,{id:"introduction",children:[(0,s.jsx)(n.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#introduction",children:"#"}),"Introduction"]}),"\n",(0,s.jsxs)(n.p,{children:["Welcome to the ",(0,s.jsx)(n.strong,{children:"React Native Testing Library (RNTL) Cookbook"}),"!\nThis app is your go-to resource for learning how to effectively test React Native applications.\nIt provides a collection of ",(0,s.jsx)(n.strong,{children:"best practices"}),", ",(0,s.jsx)(n.strong,{children:"ready-made recipes"}),", and ",(0,s.jsx)(n.strong,{children:"tips & tricks"})," to\nsimplify and improve your testing workflow. Whether you’re a beginner just getting started or a\nseasoned developer looking to sharpen your\nskills, the Cookbook has something for everyone."]}),"\n",(0,s.jsxs)(n.h2,{id:"whats-inside-the-cookbook",children:[(0,s.jsx)(n.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#whats-inside-the-cookbook",children:"#"}),"What's Inside the Cookbook?"]}),"\n",(0,s.jsxs)(n.p,{children:["The Cookbook is currently organized into ",(0,s.jsx)(n.strong,{children:"three main chapters"}),":"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Basic Recipes"}),": A great starting point, covering essential testing scenarios such as async\noperations and custom render functions."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Advanced Recipes"}),": More complex scenarios like network requests and in the future, navigation\ntesting and more."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"State Management Recipes"}),": Best practices for testing state management libraries"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Each recipe includes a clear explanation along with a corresponding code example to help you get\nhands-on with testing. Checkout\nthe ",(0,s.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/tree/main/examples/cookbook#rntl-cookbook",rel:"noopener noreferrer",target:"_blank",children:"Cookbook App"})," to see the\nrecipes in action."]}),"\n",(0,s.jsxs)(n.h2,{id:"whats-next",children:[(0,s.jsx)(n.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#whats-next",children:"#"}),"What's Next?"]}),"\n",(0,s.jsxs)(n.p,{children:["Join the conversation\non ",(0,s.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/issues/1624",rel:"noopener noreferrer",target:"_blank",children:"GitHub"})," here to discuss\nideas, ask questions, or provide feedback."]})]})}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(r,{...e})}):r(e)}i.__RSPRESS_PAGE_META={},i.__RSPRESS_PAGE_META["13.x%2Fcookbook%2Findex.md"]={toc:[{id:"whats-inside-the-cookbook",text:"What's Inside the Cookbook?",depth:2},{id:"whats-next",text:"What's Next?",depth:2}],title:"Introduction",headingTitle:"Introduction",frontmatter:{}}}}]); |