use module exports
This commit is contained in:
14
src/__mocks__/actions-core.js
Normal file
14
src/__mocks__/actions-core.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
getInput: jest.fn(() => ""),
|
||||
getBooleanInput: jest.fn(() => false),
|
||||
setOutput: jest.fn(),
|
||||
setSecret: jest.fn(),
|
||||
exportVariable: jest.fn(),
|
||||
setFailed: jest.fn(),
|
||||
info: jest.fn(),
|
||||
warning: jest.fn(),
|
||||
error: jest.fn(),
|
||||
debug: jest.fn(),
|
||||
addPath: jest.fn(),
|
||||
isDebug: jest.fn(() => false),
|
||||
};
|
||||
7
src/__mocks__/actions-tool-cache.js
Normal file
7
src/__mocks__/actions-tool-cache.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
downloadTool: jest.fn(),
|
||||
extractTar: jest.fn(),
|
||||
extractZip: jest.fn(),
|
||||
cacheDir: jest.fn((dir) => Promise.resolve(dir)),
|
||||
find: jest.fn(() => ""),
|
||||
};
|
||||
Reference in New Issue
Block a user