Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 56612c3

Browse files
committed
fixing an odd issue where importing mocked from ts-jest broke the build
1 parent c926197 commit 56612c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/ownership/lib/gitLsFiles.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { execFile } from './execFile';
2-
import { mocked } from 'ts-jest';
32
import { gitLsFiles } from './gitLsFiles';
3+
44
jest.mock('./execFile');
5+
const execFileMock = execFile as jest.Mock;
56

67
describe('git ls-files', () => {
78
it('splits the input', async () => {
8-
mocked(execFile).mockResolvedValue({ stdout: 'foo\nbar\n', stderr: '' });
9+
execFileMock.mockResolvedValue({ stdout: 'foo\nbar\n', stderr: '' });
910

1011
const result = await gitLsFiles('some/dir');
1112

0 commit comments

Comments
 (0)