{"id":16969023,"url":"https://github.com/devlinduldulao/zustand-immer-react-query-course-starter-trondheim","last_synced_at":"2026-04-05T22:02:38.665Z","repository":{"id":154633424,"uuid":"632350113","full_name":"webmasterdevlin/zustand-immer-react-query-course-starter-trondheim","owner":"webmasterdevlin","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-26T12:36:15.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T13:30:13.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webmasterdevlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T08:20:02.000Z","updated_at":"2023-04-25T08:20:09.000Z","dependencies_parsed_at":"2024-11-28T01:26:13.464Z","dependency_job_id":"70f1d3d1-5b65-40ac-8339-29935f995764","html_url":"https://github.com/webmasterdevlin/zustand-immer-react-query-course-starter-trondheim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fzustand-immer-react-query-course-starter-trondheim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fzustand-immer-react-query-course-starter-trondheim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fzustand-immer-react-query-course-starter-trondheim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fzustand-immer-react-query-course-starter-trondheim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmasterdevlin","download_url":"https://codeload.github.com/webmasterdevlin/zustand-immer-react-query-course-starter-trondheim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852129,"owners_count":20521151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T00:23:46.910Z","updated_at":"2025-12-30T23:56:35.589Z","avatar_url":"https://github.com/webmasterdevlin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Redux Query Course with Zustand, Immer, and React Table\n\n#### Tech tools\n\n- https://pnpm.io\n- https://vitejs.dev\n- https://react-hook-form.com\n- https://zod.dev\n- https://tailwindcss.com\n- https://vitest.dev\n- https://playwright.dev\n\n```sh\n$ git clone https://github.com/webmasterdevlin/zustand-immer-react-query-course.git\n$ cd zustand-immer-react-query-course\n$ pnpm install\n$ pnpm start\n```\n\n#### E2e testing\n\n```sh\n$ npx playwright install\n$ pnpm test:e2e\n```\n\nThe React app, and the fake web service will run concurrently.\n\n![screenshot](./screenshot.png)\n\n## Set up React Testing Library and Vitest\n\n- create ./src/test-utils/testing-library-util.tsx that will be a copy of the root component\n\n## Set up MSW for mocking API calls\n\n- pnpm i -D msw\n- the msw is a mocking library which will intercept the requests and responses in the integration tests\n- create ./src/mocks/handler/todoHandler.ts\n- create ./src/mocks/handler/index.ts\n- create ./src/mocks/server.ts\n- update the ./src/setupTests.ts\n\n## Integration tests\n\n- write integration tests for the fetch todos function of WorkTodosPage.tsx by creating ./src/pages/tests/WorkTodosPage.test.ts\n- run the tests, pnpm run test, and see if the todos are rendered\n\n#### React Query persist cache between tests\n\n- the beforeEach does not work\n\n```ts\nbeforeEach(() =\u003e {\n  queryClient.clear();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlinduldulao%2Fzustand-immer-react-query-course-starter-trondheim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlinduldulao%2Fzustand-immer-react-query-course-starter-trondheim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlinduldulao%2Fzustand-immer-react-query-course-starter-trondheim/lists"}