-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
schema.json
31 lines (31 loc) · 1.03 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"$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"
}