Skip to content

Commit

Permalink
New workflow added for testing handler. yeoman#759
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Jun 5, 2019
1 parent 376642c commit f28cf21
Showing 1 changed file with 62 additions and 1 deletion.
63 changes: 62 additions & 1 deletion app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,68 @@ module.exports = {
name: 'includeJQuery',
message: 'Would you like to include jQuery?',
default: true,
when: answers => !answers.features.includes('includeBootstrap')
when: answers =>
answers.features && !answers.features.includes('includeBootstrap')
},
{
type: 'confirm',
name: 'includeTest',
message: 'Would you like to add testing?',
default: true
},
{
type: 'checkbox',
name: 'testsWanted',
message: 'Which type of test would you like to cover?',
when: answers => answers.includeTest,
choices: [
{
name: 'End to end (e2e)',
value: 'includeE2e',
checked: true
},
{
name: 'Unit Test',
value: 'includeUnit',
checked: true
}
]
},
{
type: 'list',
name: 'unitTestFramework',
message: 'Which test framework would you like to use?',
when: answers =>
answers.includeTest &&
answers.testsWanted &&
answers.testsWanted.includes('includeUnit'),
choices: [
{
name: 'Jest',
value: 'jest',
checked: true
},
{
name: 'Ava',
value: 'ava',
checked: true
},
{
name: 'Jasmine',
value: 'jasmine',
checked: true
},
{
name: 'Mocha (Testing driven design)',
value: 'mochaTdd',
checked: true
},
{
name: 'Mocha (Behaviour Driven Design)',
value: 'mochaBdd',
checked: true
}
]
}
],
dirsToCreate: ['app/images', 'app/fonts'],
Expand Down

0 comments on commit f28cf21

Please sign in to comment.