Skip to content

Commit

Permalink
chore(jobs test): Remove unused file. Use toContain() (#11355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Aug 23, 2024
1 parent 29f4511 commit d10d2f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.

This file was deleted.

8 changes: 3 additions & 5 deletions packages/cli/src/commands/setup/__tests__/jobsHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,9 @@ describe('jobsHandler', () => {
it('ignores error for already existing api/src/jobs dir', async () => {
await jobsHandler.handler({ force: false })

expect(
Listr2Mock.executedTaskTitles.some(
(title) => title === 'Creating jobs dir at api/src/jobs...',
),
).toBeTruthy()
expect(Listr2Mock.executedTaskTitles).toContain(
'Creating jobs dir at api/src/jobs...',
)
expect(console.error).not.toHaveBeenCalled()
})
})

0 comments on commit d10d2f9

Please sign in to comment.