diff --git a/docs/guides/testing.md b/docs/guides/testing.md index 63d61ed5..78f12edf 100644 --- a/docs/guides/testing.md +++ b/docs/guides/testing.md @@ -26,7 +26,7 @@ See these resources for test runner configuration instructions: **We recommend using [React Testing Library (RTL)](https://testing-library.com/docs/react-testing-library/intro) to test out React components that connect to Zustand**. RTL is a simple and complete React DOM testing utility that encourages good testing practices. It uses ReactDOM's `render` function and -`act` from `react-dom/tests-utils`. Futhermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro) +`act` from `react-dom/tests-utils`. Furthermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro) is the alternative to RTL to test out React Native components. The [Testing Library](https://testing-library.com/) family of tools also includes adapters for many other popular frameworks. diff --git a/tests/persistAsync.test.tsx b/tests/persistAsync.test.tsx index e36211e0..dbda5a72 100644 --- a/tests/persistAsync.test.tsx +++ b/tests/persistAsync.test.tsx @@ -302,7 +302,7 @@ describe('persist middleware with async configuration', () => { ) }) - it('can correclty handle a missing migrate function', async () => { + it('can correctly handle a missing migrate function', async () => { console.error = vi.fn() const onRehydrateStorageSpy = vi.fn() const storage = { diff --git a/tests/persistSync.test.tsx b/tests/persistSync.test.tsx index e4ad8c66..e27ae12f 100644 --- a/tests/persistSync.test.tsx +++ b/tests/persistSync.test.tsx @@ -168,7 +168,7 @@ describe('persist middleware with sync configuration', () => { expect(onRehydrateStorageSpy).toBeCalledWith({ count: 99 }, undefined) }) - it('can correclty handle a missing migrate function', () => { + it('can correctly handle a missing migrate function', () => { console.error = vi.fn() const onRehydrateStorageSpy = vi.fn() const storage = {