Skip to content

Commit 16918c6

Browse files
minor fs test fixes
Signed-off-by: nkomonen-amazon <[email protected]>
1 parent 9eed393 commit 16918c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/test/shared/fs/fs.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ describe('FileSystem', function () {
340340

341341
it('deletes directory with recursive:true', async function () {
342342
const dir = await testFolder.mkdir()
343+
await testFolder.write('testfile.txt', 'testText')
343344
await fs.delete(dir, { recursive: true })
344345
assert(!existsSync(dir))
345346
})
@@ -348,7 +349,7 @@ describe('FileSystem', function () {
348349
const dir = await testFolder.mkdir()
349350
const f = path.join(dir, 'missingfile.txt')
350351
assert(!existsSync(f))
351-
await fs.delete(f, { recursive: true })
352+
await fs.delete(f)
352353
})
353354

354355
it('error if file *and* its parent dir not found', async function () {

0 commit comments

Comments
 (0)