UNPKG

@nx/react

Version:

The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook. - Generators for applica

32 lines (31 loc) 1.05 kB
{ "$schema": "https://json-schema.org/schema", "cli": "nx", "$id": "NxReactCypressComponentTest", "title": "Add Cypress component test", "description": "Add a Cypress component test for a component.", "type": "object", "examples": [ { "command": "nx g @nx/react:component-test --project=my-react-project --component-path=src/lib/fancy-component.tsx", "description": "Create a cypress component test for FancyComponent" } ], "properties": { "project": { "type": "string", "description": "The name of the project the component is apart of", "x-dropdown": "projects", "x-prompt": "What project is this component apart of?", "x-priority": "important" }, "componentPath": { "type": "string", "description": "Path to component, from the project source root", "x-prompt": "What is the path to the component?", "x-priority": "important" } }, "required": ["project", "componentPath"], "examplesFile": "../../../docs/component-test-examples.md" }