Update main.test.ts to actually mock the GitHub Actions core library

This commit is contained in:
Alexander Aavang 2023-09-28 15:03:04 -05:00 committed by GitHub
parent 730827f637
commit 4756133512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@
import * as core from '@actions/core'
import * as main from '../src/main'
// Setup Jest to mock GitHub Actions core library
jest.mock('@actions/core')
// Mock the GitHub Actions core library
const debugMock = jest.spyOn(core, 'debug')
const getInputMock = jest.spyOn(core, 'getInput')