File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @decathlon/moon-testing" ,
3- "version" : " 0.1.1 " ,
3+ "version" : " 0.1.2 " ,
44 "description" : " Moon testing utilities." ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class AxiosClient {
3636}
3737
3838export function mockAxiosClientConstructor ( ClientFactory = AxiosClient ) : void {
39- Axios . create = ( { baseUrl } ) => {
39+ Axios . create = ( { baseUrl } : { baseUrl : string } ) => {
4040 return new ClientFactory ( baseUrl ) ;
4141 } ;
4242}
@@ -45,6 +45,7 @@ mockAxiosClientConstructor(AxiosClient);
4545
4646export const cancelToken = { cancel : ( ) => jest . fn ( ) } ;
4747
48+ //@ts -ignore
4849StaticAxios . CancelToken . source = ( ) => cancelToken ;
4950
5051export { default as MoonClient } from "./moon-client" ;
You can’t perform that action at this time.
0 commit comments