Skip to content

Commit

Permalink
update the spy type
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Apr 27, 2022
1 parent 5316818 commit 8c71d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/node/test/node-lazy-require.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const mockPackageJson = (version: string) =>
describe('node-lazy-require', () => {
describe('NodeLazyRequire', () => {
describe('ensure', () => {
let readFSMock: jest.SpyInstance;
let readFSMock: jest.SpyInstance<ReturnType<typeof fs.readFileSync>, Parameters<typeof fs.readFileSync>>;

beforeEach(() => {
readFSMock = jest.spyOn(fs, 'readFileSync').mockReturnValue(mockPackageJson('10.10.10'));
Expand Down

0 comments on commit 8c71d85

Please sign in to comment.