Convert to ESM.
Context: https://github.com/actions/typescript-action/pull/969
This commit is contained in:
committed by
Fabio Niephaus
parent
59f089d81e
commit
b4c67abb33
15
__fixtures__/github.ts
Normal file
15
__fixtures__/github.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as github from '@actions/github'
|
||||
import { jest } from '@jest/globals'
|
||||
|
||||
export const context = {
|
||||
repo: {
|
||||
owner: 'test-owner',
|
||||
repo: 'test-repo'
|
||||
},
|
||||
sha: 'test-sha',
|
||||
ref: 'test-ref',
|
||||
workflow: 'test-workflow',
|
||||
job: 'test-job',
|
||||
runId: '12345'
|
||||
}
|
||||
export const getOctokit = jest.fn<typeof github.getOctokit>()
|
||||
Reference in New Issue
Block a user