@@ -12,7 +12,7 @@ import { Exercise } from './core';
1212describe ( 'cook' , ( ) => {
1313 it ( 'does not checkout the implementation if TDD is enabled' , async ( ) => {
1414 const { executedCommands, files } = await runMain ( {
15- choices : { exercise : '1-recipe-search' } ,
15+ choices : { exercise : '1-recipe-search' , useTdd : true } ,
1616 files : {
1717 'apps/1-recipe-search-solution/some-file.txt' : '' ,
1818 'apps/1-recipe-search-starter/some-file.txt' : '' ,
@@ -43,7 +43,7 @@ describe('cook', () => {
4343
4444 it ( 'goes to exercise and checks out the implementation from solution project' , async ( ) => {
4545 const { executedCommands } = await runMain ( {
46- choices : { exercise : '1-recipe-search' , useTdd : false } ,
46+ choices : { exercise : '1-recipe-search' } ,
4747 nxJsonContent : { } ,
4848 } ) ;
4949
@@ -95,13 +95,13 @@ describe('cook', () => {
9595
9696async function runMain ( {
9797 choices,
98- hasLocalChanges,
98+ hasLocalChanges = false ,
9999 nxJsonContent,
100100 files = { } ,
101101} : {
102102 choices : Record < string , unknown > ;
103- hasLocalChanges : boolean ;
104103 nxJsonContent : { defaultProject ?: string } ;
104+ hasLocalChanges ?: boolean ;
105105 files ?: Record < string , string > ;
106106} ) {
107107 const fileSystemAdapter = new FileSystemFake ( ) ;
0 commit comments