mirror of https://github.com/actions/cache.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
571 B
TypeScript
21 lines
571 B
TypeScript
2 years ago
|
import * as cache from "@actions/cache";
|
||
|
import * as core from "@actions/core";
|
||
|
|
||
|
import { Events, RefKey } from "../src/constants";
|
||
|
import * as actionUtils from "../src/utils/actionUtils";
|
||
|
import * as testUtils from "../src/utils/testUtils";
|
||
|
|
||
|
jest.mock("@actions/core");
|
||
|
jest.mock("@actions/cache");
|
||
|
|
||
|
beforeAll(() => {
|
||
|
jest.spyOn(core, "getInput").mockImplementation((name, options) => {
|
||
|
return jest.requireActual("@actions/core").getInput(name, options);
|
||
|
});
|
||
|
});
|
||
|
|
||
|
afterEach(() => {
|
||
|
delete process.env[Events.Key];
|
||
|
delete process.env[RefKey];
|
||
|
});
|