UNPKG

@nx-plugins/testing-library

Version:

The Nx Plugin for Testing Library that contains executors and generators for allowing your workspace to use powerful Testing Library testing capabilities.

61 lines 1.73 kB
{ "$schema": "http://json-schema.org/schema", "cli": "nx", "$id": "ReactTestComponent", "title": "Create a React Test Component", "type": "object", "properties": { "project": { "type": "string", "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, "x-prompt": "What is the name of the project for this component test?" }, "name": { "type": "string", "description": "The name of the component test.", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use for the component test?" }, "js": { "type": "boolean", "description": "Generate JavaScript files rather than TypeScript files.", "default": false }, "directory": { "type": "string", "description": "Create the component test under this directory (can be nested).", "alias": "dir" }, "flat": { "type": "boolean", "description": "Create component test at the source root rather than its own directory.", "default": false }, "pascalCaseFiles": { "type": "boolean", "description": "Use pascal case component test file name (e.g. `App.tsx`).", "alias": "P", "default": false }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false }, "fileName": { "type": "string", "description": "Create a component test with this file name." } }, "required": [ "name" ] }