Skip to content
cccskills
FreePublished on GitHub

data-client-react-testing

Test React components and hooks that use @data-client/react. Set up fixture responses for success, loading, errors, mutations, and polling, then check how data fetching and updates behave with helpers such as renderDataHook and MockResolver.

OriginalShow the original description

Test React code that uses @data-client/react: components and hooks that fetch or change data, with mocked responses for loading, error, mutation and polling cases. Covers renderDataHook, MockResolver and fixtures.

reactive/data-client2,040 stars(GitHub 2,040 + cccskills 0)

Run score Not tested

See how to install

Good for

  • Checking a hook’s loading and error behavior
  • Testing mutations and their effects
  • Rendering components with fixture data
  • Verifying polling responses

Files included (9)

  • SKILL.md7.0 KB
  • references.json502 B
  • references/Fixtures.md6.3 KB
  • references/makeRenderDataHook.md2.5 KB
  • references/mockInitialState.md1.7 KB
  • references/MockResolver.md2.2 KB
  • references/renderDataHook.md9.1 KB
  • references/unit-testing-components.md3.5 KB
  • references/unit-testing-hooks.md3.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

changeset

FreeSummary

Prepare user-focused changesets and release documentation for software changes. Identify affected packages and version bumps, explain visible impact and breaking changes, and update related docs, blog drafts, and skills with examples where useful.

  • Writing a changeset for a feature or fix
  • Explaining a breaking change and migration
  • Choosing affected packages and version bumps
reactive/data-client2KUpdated Nov 15, 2026

data-client

FreeSummary

Use this guide to orient work in an app that uses Reactive Data Client. Identify whether a task belongs to data schemas, REST endpoints, React or Vue hooks, or external managers, then load the matching guidance for implementation, testing, or performance work.

  • Finding the right layer for a Data Client bug
  • Adding Data Client to an existing app
  • Choosing guidance for React or Vue integration
reactive/data-client2KUpdated Nov 15, 2026

Wrap existing asynchronous functions, such as SDK calls or local storage operations, as Data Client Endpoints. This lets applications use them with Data Client hooks and controllers, with options for schemas, caching, polling, and mutations.

  • Using Firebase or Supabase calls with Data Client
  • Connecting WebSocket data fetching
  • Reading asynchronous data from IndexedDB
reactive/data-client2KUpdated Nov 17, 2026

Set up @data-client/graphql for a project that uses GraphQL. Configure a GQLEndpoint with request headers, authentication, and custom error handling, then define queries and mutations with schemas for use in React or Vue applications.

  • Adding authentication headers to GraphQL requests
  • Defining Data Client GraphQL queries and mutations
  • Handling GraphQL authentication errors
reactive/data-client2KUpdated Nov 17, 2026

Build `@data-client` Managers for app-wide effects and real-time data. Connect the store to events and services such as websockets, polling, logging, and notifications, while keeping data shape and derived values in schemas.

  • Handle websocket or SSE updates
  • Refetch data on focus or reconnect
  • Add app-wide logging and error reporting
reactive/data-client2KUpdated Nov 17, 2026

Review a React app that uses `@data-client/react` for ways to make data loading, navigation, and updates faster. The skill measures common user flows, identifies available improvements, and explains the expected user impact and tradeoffs.

  • Speed up a migrated React app
  • Reduce loading time on detail pages
  • Make navigation and prefetching faster
reactive/data-client2KUpdated Nov 15, 2026

See all skills by reactive

Report a problem with this skill