MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / when

Function when

@commitlint/cz-commitlint/src/Question.test.ts:350–350  ·  view source on GitHub ↗
(answers: Answers)

Source from the content-addressed store, hash-verified

348describe("inquirer question", () => {
349 test('should pass "when" and "default" field to inquirer question', () => {
350 const when = (answers: Answers) => !!answers.header;
351 const question = new Question("body", {
352 ...QUESTION_CONFIG,
353 when,

Callers 1

Process.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected