Skip to content

Commit 2346426

Browse files
committed
test: Use mock stdout in directory exists test
1 parent d16d683 commit 2346426

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/init-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('tymly init command', () => {
3535
})
3636

3737
it('does nothing if target directory already exists', async () => {
38+
stdMocks.use()
3839
const expectedNotEmpty = path.join(expectedPath, 'not-empty')
3940
const dirName = path.join(outputPath, 'not-empty')
4041

@@ -43,6 +44,7 @@ describe('tymly init command', () => {
4344
await initAction('tymly-pizza-blueprint', {
4445
path: dirName
4546
})
47+
stdMocks.use()
4648

4749
compareDirectories(expectedNotEmpty, dirName)
4850
})

0 commit comments

Comments
 (0)