Convert to use src and dist paths

This commit is contained in:
Nick Alteen
2023-09-15 10:56:32 -04:00
parent 7c2c305cfe
commit a7e777abad
16 changed files with 27876 additions and 152 deletions

18
__tests__/index.test.js Normal file
View File

@@ -0,0 +1,18 @@
/**
* Unit tests for the action's entrypoint, src/index.js
*/
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()
})
})