Skip to content

Commit 8556d24

Browse files
committed
feat: switch action execution to run custom code
1 parent a074c9f commit 8556d24

File tree

6 files changed

+1095
-26743
lines changed

6 files changed

+1095
-26743
lines changed

__tests__/index.test.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
* Unit tests for the action's entrypoint, src/index.ts
33
*/
44

5-
import * as main from '../src/main'
5+
import * as themeConverter from '../src/themeConverter'
66

77
// Mock the action's entrypoint
8-
const runMock = jest.spyOn(main, 'run').mockImplementation()
8+
const runMock = jest
9+
.spyOn(themeConverter, 'cloneRepository')
10+
.mockImplementation()
911

10-
describe('index', () => {
11-
it('calls run when imported', async () => {
12+
describe('themeConverter', () => {
13+
it('calls cloneRepository when imported', async () => {
1214
// eslint-disable-next-line @typescript-eslint/no-require-imports
1315
require('../src/index')
1416

badges/coverage.svg

+1-1
Loading

0 commit comments

Comments
 (0)