Switched to TS action

This commit is contained in:
levalicious committed 2024-02-05 07:15:40 -05:00
1 parent 3ca34f11ef
commit cb129aac1c
22 files changed
+31382 -2

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
/**
* 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', async () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../src/index')
expect(runMock).toHaveBeenCalled()
})
})