@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
40 lines • 1.5 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const schema_1 = require("@sprucelabs/schema");
const namedTemplateItem_builder_1 = __importDefault(require("./namedTemplateItem.builder"));
exports.default = (0, schema_1.buildSchema)({
id: 'createTestOptions',
name: 'Create test action',
description: 'Your first failing test just a command away! ⚔️',
fields: {
type: {
type: 'select',
label: 'Type of test',
isRequired: true,
options: {
choices: [
{ value: 'behavioral', label: 'Behavioral' },
{ value: 'implementation', label: 'Implementation' },
],
},
},
nameReadable: {
type: 'text',
label: 'What are you testing?',
isRequired: true,
hint: 'E.g. Todo Card or Systems List',
},
testDestinationDir: {
type: 'text',
label: 'Test destination directory',
hint: "Where I'll save your new test.",
defaultValue: 'src/__tests__',
},
nameCamel: namedTemplateItem_builder_1.default.fields.nameCamel,
namePascal: namedTemplateItem_builder_1.default.fields.namePascal,
},
});
//# sourceMappingURL=createTestOptions.builder.js.map