Skip to content

Commit

Permalink
fix new action test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quan Nguyen Ba committed Nov 8, 2024
1 parent 85e2c3d commit 73010c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/actions/new.action.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('newAction', () => {
path.join(process.cwd(), projectName),
{ recursive: true },
)
expect(copyFileSync).toHaveBeenCalledTimes(2) // For .gitignore and .env.local
expect(copyFileSync).toHaveBeenCalledTimes(3) // For .gitignore, infra/.gitignore and .env.local
expect(mockExecSync).toHaveBeenCalledWith('git init', {
cwd: path.join(process.cwd(), projectName),
})
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('newAction', () => {
path.join(process.cwd(), projectName),
{ recursive: true },
)
expect(copyFileSync).toHaveBeenCalledTimes(2) // For .gitignore and .env.local
expect(copyFileSync).toHaveBeenCalledTimes(3) // For .gitignore, infra/.gitignore and .env.local
expect(mockExecSync).toHaveBeenCalledWith('git init', {
cwd: path.join(process.cwd(), projectName),
})
Expand Down

0 comments on commit 73010c5

Please sign in to comment.