@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
53 lines • 1.95 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const schema_1 = require("@sprucelabs/schema");
const createTestOptionsSchema = {
id: 'createTestOptions',
version: 'v2020_07_22',
namespace: 'SpruceCli',
name: 'Create test action',
description: 'Your first failing test just a command away! ⚔️',
fields: {
/** Type of test. */
'type': {
label: 'Type of test',
type: 'select',
isRequired: true,
options: { choices: [{ "value": "behavioral", "label": "Behavioral" }, { "value": "implementation", "label": "Implementation" }], }
},
/** What are you testing?. E.g. Todo Card or Systems List */
'nameReadable': {
label: 'What are you testing?',
type: 'text',
isRequired: true,
hint: 'E.g. Todo Card or Systems List',
options: undefined
},
/** Test destination directory. Where I'll save your new test. */
'testDestinationDir': {
label: 'Test destination directory',
type: 'text',
hint: 'Where I\'ll save your new test.',
defaultValue: "src/__tests__",
options: undefined
},
/** Camel case name. camelCase version of the name */
'nameCamel': {
label: 'Camel case name',
type: 'text',
isRequired: true,
hint: 'camelCase version of the name',
options: undefined
},
/** Pascal case name. PascalCase of the name */
'namePascal': {
label: 'Pascal case name',
type: 'text',
hint: 'PascalCase of the name',
options: undefined
},
}
};
schema_1.SchemaRegistry.getInstance().trackSchema(createTestOptionsSchema);
exports.default = createTestOptionsSchema;
//# sourceMappingURL=createTestOptions.schema.js.map