mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
Add additional mocks needed for tests in new versions of @actions
Tests started failing after @actions was bumped in https://github.com/hashicorp/vault-action/pull/334
This commit is contained in:
parent
d2b5111993
commit
3af8e2b836
1 changed files with 6 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue