Files
javascript-action/__tests__/index.test.js
T

19 lines
337 B
JavaScript
Raw Normal View History

2023-09-14 10:36:27 -04:00
/**
2023-10-06 09:46:54 -04:00
* Unit tests for the action's entrypoint, src/index.js
2023-09-14 10:36:27 -04:00
*/
const { run } = require('../src/main')
// Mock the action's entrypoint
jest.mock('../src/main', () => ({
run: jest.fn()
}))
describe('index', () => {
it('calls run when imported', async () => {
require('../src/index')
expect(run).toHaveBeenCalled()
})
})