Skip to content

Commit db02f1e

Browse files
committed
chore: updated code to fix broken tests.
1 parent 2912c7e commit db02f1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/__tests__/create.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('runCreate', () => {
152152
expect(mockExeca).toHaveBeenNthCalledWith(
153153
1,
154154
'git',
155-
['clone', starter!.repo, projectPath],
155+
['clone', ...(starter!.options ?? []), starter!.repo, projectPath],
156156
expect.objectContaining({ stdio: 'inherit' })
157157
);
158158
});
@@ -166,7 +166,7 @@ describe('runCreate', () => {
166166
expect(mockExeca).toHaveBeenNthCalledWith(
167167
1,
168168
'git',
169-
['clone', starter!.repoSSH, projectPath],
169+
['clone', ...(starter!.options ?? []), starter!.repoSSH, projectPath],
170170
expect.objectContaining({ stdio: 'inherit' })
171171
);
172172
});
@@ -225,7 +225,7 @@ describe('runCreate', () => {
225225

226226
expect(mockExeca).toHaveBeenNthCalledWith(
227227
2,
228-
'yarn',
228+
'npm',
229229
['install'],
230230
expect.objectContaining({ cwd: projectPath, stdio: 'inherit' })
231231
);

0 commit comments

Comments
 (0)