diff --git a/src/auth.test.js b/src/auth.test.js index 769a4e3..ac689d3 100644 --- a/src/auth.test.js +++ b/src/auth.test.js @@ -1,7 +1,12 @@ jest.mock('got'); jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); -jest.mock("fs") +jest.mock('fs', () => ({ + stat: jest.fn().mockResolvedValue(null), + promises: { + access: jest.fn().mockResolvedValue(null), + } +})); const core = require('@actions/core'); const got = require('got');