docker-attest-build-provenance/__tests__/index.test.ts
Brian DeHamer f4b7552a12
bump eslint from 8.57.1 to 9.16.0 (#418)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-12-16 07:08:45 -08:00

18 lines
408 B
TypeScript

/**
* Unit tests for the action's entrypoint, src/index.ts
*/
import * as main from '../src/main'
// Mock the action's entrypoint
const runMock = jest.spyOn(main, 'run').mockImplementation()
describe('index', () => {
it('calls run when imported', () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../src/index')
expect(runMock).toHaveBeenCalled()
})
})