@@ -60,7 +60,7 @@ describe('resolutions', () => {
6060 } ) ;
6161
6262 it ( 'should fail when non-matching resolution is present in package.json and ignore list' , ( ) => {
63- getMultilineInputMock . mockImplementationOnce ( input =>
63+ getMultilineInputMock . mockImplementationOnce ( ( input : string ) =>
6464 input === 'ignore-resolutions' ? [ '@test/package-foo' , '@test/package-bar' ] : [ ]
6565 ) ;
6666
@@ -81,7 +81,7 @@ describe('resolutions', () => {
8181 } ) ;
8282
8383 it ( 'should not fail when resolutions are not present, but ignore list is' , ( ) => {
84- getMultilineInputMock . mockImplementationOnce ( input =>
84+ getMultilineInputMock . mockImplementationOnce ( ( input : string ) =>
8585 input === 'ignore-resolutions' ? [ '@test/package' ] : [ ]
8686 ) ;
8787
@@ -96,7 +96,7 @@ describe('resolutions', () => {
9696 describe ( 'ignore-resolutions-until' , ( ) => {
9797 it ( 'should not fail when some resolutions are provided and ignore-resolutions-until is set with date in the future' , ( ) => {
9898 setSystemTime ( new Date ( '2020-12-31' ) ) ;
99- getInputMock . mockImplementation ( input =>
99+ getInputMock . mockImplementation ( ( input : string ) =>
100100 input === 'ignore-resolutions-until' ? '2021-01-01' : ''
101101 ) ;
102102
@@ -118,7 +118,7 @@ describe('resolutions', () => {
118118
119119 it ( 'should fail when some resolutions are provided and ignore-resolutions-until is set with date in the past' , ( ) => {
120120 setSystemTime ( new Date ( '2021-01-31' ) ) ;
121- getInputMock . mockImplementation ( input =>
121+ getInputMock . mockImplementation ( ( input : string ) =>
122122 input === 'ignore-resolutions-until' ? '2021-01-01' : ''
123123 ) ;
124124
@@ -142,7 +142,9 @@ describe('resolutions', () => {
142142
143143 it ( 'should fail when some resolutions are provided and ignore-resolutions-until is not set' , ( ) => {
144144 setSystemTime ( new Date ( '2021-01-31' ) ) ;
145- getInputMock . mockImplementation ( input => ( input === 'ignore-resolutions-until' ? '' : '' ) ) ;
145+ getInputMock . mockImplementation ( ( input : string ) =>
146+ input === 'ignore-resolutions-until' ? '' : ''
147+ ) ;
146148
147149 const packageJson : PackageJson = {
148150 dependencies : { } ,
@@ -164,10 +166,10 @@ describe('resolutions', () => {
164166
165167 it ( 'should not fail when matching resolution is present in package.json and ignore list, while ignore-resolutions-until is provided with date in the past' , ( ) => {
166168 setSystemTime ( new Date ( '2021-01-31' ) ) ;
167- getInputMock . mockImplementation ( input =>
169+ getInputMock . mockImplementation ( ( input : string ) =>
168170 input === 'ignore-resolutions-until' ? '2021-01-01' : ''
169171 ) ;
170- getMultilineInputMock . mockImplementationOnce ( input =>
172+ getMultilineInputMock . mockImplementationOnce ( ( input : string ) =>
171173 input === 'ignore-resolutions' ? [ '@test/package-foo' , '@test/package-bar' ] : [ ]
172174 ) ;
173175
0 commit comments