From 442d4943d8ae56a29e209318dd3959da3233aa46 Mon Sep 17 00:00:00 2001 From: Jimin <60884877+zmin9@users.noreply.github.com> Date: Tue, 9 May 2023 09:18:59 -0700 Subject: [PATCH] Fix typo in jest method name (#4271) Summary: Fix typo Pull Request resolved: https://github.com/facebook/relay/pull/4271 Differential Revision: D45661465 Privacy Context Container: L1125407 Pulled By: captbaritone fbshipit-source-id: 8aa034f93caeacdfc9e0cbac53b75bae32e774d7 --- .../version-v14.0.0/guides/testing-relay-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-v14.0.0/guides/testing-relay-components.md b/website/versioned_docs/version-v14.0.0/guides/testing-relay-components.md index b089020a71b64..41649decddc55 100644 --- a/website/versioned_docs/version-v14.0.0/guides/testing-relay-components.md +++ b/website/versioned_docs/version-v14.0.0/guides/testing-relay-components.md @@ -556,7 +556,7 @@ test('Error State', () => { The examples in this guide should work for testing components both with Relay Hooks, Containers or Renderers. When writing tests that involve the `usePreloadedQuery` hook, please also see the `queuePendingOperation` note above. -### toMatchSnaphot(...) +### toMatchSnapshot(...) Even though in all of the examples here you can see assertions with `toMatchSnapshot()`, we keep it that way just to make examples concise. But it's not the recommended way to test your components.