diff --git a/__tests__/fs-helper.test.ts b/__tests__/fs-helper.test.ts index b0f6796..8997ec8 100644 --- a/__tests__/fs-helper.test.ts +++ b/__tests__/fs-helper.test.ts @@ -75,7 +75,11 @@ describe('createArchives', () => { expect(tarSHA).toEqual(systemTarHash) }) - // TODO: Test the failure cases + it('creates archives fails if destination cannot be reached', async () => { + await expect( + fsHelper.createArchives('/this/destination/path/does/not/exist', tmpDir) + ).rejects.toThrow(/^ENOENT: no such file or directory, lstat/) + }) }) describe('createTempDir', () => {