Skip to content

Commit f1a3096

Browse files
committed
build: 📦 disable tdd by default
1 parent 83e06dc commit f1a3096

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎tools/cook/main.spec.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Exercise } from './core';
1212
describe('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

9696
async 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();

‎tools/cook/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async function goToExercise(ctx: Context, exerciseId?: string) {
168168
type: 'confirm',
169169
name: 'useTdd',
170170
message: 'Do you want to use TDD?',
171-
initial: true,
171+
initial: false,
172172
});
173173
tdd = tddChoice.useTdd;
174174
}

0 commit comments

Comments
 (0)