diff --git a/__tests__/actionUtils.test.ts b/__tests__/actionUtils.test.ts index fe13c78..ea33ef2 100644 --- a/__tests__/actionUtils.test.ts +++ b/__tests__/actionUtils.test.ts @@ -350,9 +350,8 @@ test("unlinkFile unlinks file", async () => { await actionUtils.unlinkFile(testFile); - await expect(fs.stat(testFile)).rejects.toThrow( - `ENOENT: no such file or directory, stat '${testFile}'` - ); + // This should throw as testFile should not exist + await expect(fs.stat(testFile)).rejects.toThrow(); await fs.rmdir(testDirectory); });