Files
setup-clang/__tests__/index.test.ts
Lucas Petrino 06249bf357
Some checks failed
Lint Codebase / Lint Codebase (push) Has been cancelled
Continuous Integration / GitHub Actions Test (push) Failing after 20s
Check Transpiled JavaScript / Check dist/ (push) Successful in 1m9s
Continuous Integration / TypeScript Tests (push) Successful in 1m17s
Initial Commit
2024-11-17 11:50:58 +13: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()
})
})