File tree 4 files changed +4
-5
lines changed
4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ import { Octokit } from '@octokit/rest';
2
2
import type { Endpoints } from '@octokit/types' ;
3
3
import { mocked } from 'ts-jest/utils' ;
4
4
5
+ import { getHeadSha , getOwnerRepo } from '../../utils/git' ;
5
6
import type * as GitHub from '../github' ;
6
7
7
8
import { createCheckRun } from './checkRun' ;
8
- import { getHeadSha , getOwnerRepo } from './util' ;
9
9
10
10
type CreateCheckRunResponse =
11
11
Endpoints [ 'POST /repos/{owner}/{repo}/check-runs' ] [ 'response' ] ;
12
12
13
13
jest . mock ( '@octokit/rest' ) ;
14
- jest . mock ( './util ' ) ;
14
+ jest . mock ( '../../utils/git ' ) ;
15
15
16
16
const mockClient = {
17
17
checks : {
Original file line number Diff line number Diff line change 1
1
import { Octokit } from '@octokit/rest' ;
2
2
import type { Endpoints } from '@octokit/types' ;
3
3
4
+ import { getHeadSha , getOwnerRepo } from '../../utils/git' ;
4
5
import { pluralise } from '../../utils/logging' ;
5
6
6
- import { getHeadSha , getOwnerRepo } from './util' ;
7
-
8
7
type Output = NonNullable <
9
8
Endpoints [ 'POST /repos/{owner}/{repo}/check-runs' ] [ 'parameters' ] [ 'output' ]
10
9
> ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { ReadCommitResult } from 'isomorphic-git';
2
2
import git from 'isomorphic-git' ;
3
3
import { mocked } from 'ts-jest/utils' ;
4
4
5
- import { getHeadSha , getOwnerRepo } from './util ' ;
5
+ import { getHeadSha , getOwnerRepo } from './git ' ;
6
6
7
7
jest . mock ( 'isomorphic-git' ) ;
8
8
File renamed without changes.
You can’t perform that action at this time.
0 commit comments