relay-e2e-test
द्वारा facebook
Relay के लिए मार्कडाउन-संचालित एंड-टू-एंड परीक्षण लिखें और चलाएं। इसमें फिक्स्चर प्रारूप, सर्वर/क्लाइंट कोड पैटर्न, इंटरैक्शन DSL, स्नैपशॉट और परीक्षण चलाना शामिल है।
npx skills add https://github.com/facebook/relay --skill relay-e2e-testRelay E2E Tests
Markdown-driven end-to-end tests for Relay. Each test is a self-contained .md file that defines a GraphQL server (via Grats), a Relay-powered React component, and optional interaction steps. The test harness extracts the code blocks, compiles them with Grats + relay-compiler, renders with React Testing Library, runs interactions, and snapshot-tests the output.
Tests run against Relay runtime packages from source, so changes are reflected immediately without a build step.
References
Read the appropriate reference file based on your task:
- Writing fixtures — fixture format, example, server/client code patterns, interaction DSL, snapshots. Read when creating or modifying test fixtures.
- Running tests (internal) — setup, commands, and compiler resolution for fbsource / OD. Read when running tests internally.
- Running tests (GitHub) — setup, commands, and compiler resolution for the OSS repo. Read when running tests on GitHub.