feat: initial version
This commit is contained in:
commit
2fc1d51eb6
37 changed files with 66401 additions and 0 deletions
__tests__
17
__tests__/index.test.ts
Normal file
17
__tests__/index.test.ts
Normal 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.ts')
|
||||
|
||||
expect(runMock).toHaveBeenCalled()
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue