Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Joi = require('joi');
var stepsSchema = require('screener-runner/src/validate').stepsSchema;
var resolutionSchema = require('screener-runner/src/validate').resolutionSchema;
var browsersSchema = require('screener-runner/src/validate').browsersSchema;
var sauceSchema = require('screener-runner/src/validate').sauceSchema;
var vstsSchema = require('screener-runner/src/validate').vstsSchema;
var browserStackSchema = require('screener-runner/src/validate').browserStackSchema;
exports.storybookConfig = function(value) {
var schema = Joi.object().keys({
apiKey: Joi.string().required(),
projectRepo: Joi.string().max(100).required(),
storybookConfigDir: Joi.string().required(),
storybookStaticDir: Joi.string(),
storybookStaticBuildDir: Joi.string(),
storybookPort: Joi.number().required(),
storybookPreview: Joi.string().required(),
storybook: Joi.array().min(0).items(
Joi.object().keys({
kind: Joi.string().required(),