(state, cliAnswers)
| 18 | }; |
| 19 | |
| 20 | const createQuestions = (state, cliAnswers) => { |
| 21 | const questions = state.config.questions |
| 22 | .filter((name) => cliAnswers[name] === undefined) |
| 23 | .map((name) => { |
| 24 | const question = creators[name].createQuestion(state); |
| 25 | |
| 26 | if (state.config.messages && state.config.messages[name]) { |
| 27 | question.message = state.config.messages[name]; |
| 28 | } |
| 29 | |
| 30 | return question; |
| 31 | }); |
| 32 | |
| 33 | return questions.filter(Boolean); |
| 34 | }; |
| 35 | |
| 36 | module.exports = createQuestions; |
no outgoing calls
no test coverage detected
searching dependent graphs…