File tree Expand file tree Collapse file tree
course-updates/update-form Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ const UpdateForm = ({
8383 showPopperArrow = { false }
8484 onChange = { ( value ) => {
8585 if ( ! isValidDate ( value ) ) {
86+ /* istanbul ignore next */
8687 return ;
8788 }
8889 // eslint-disable-next-line @typescript-eslint/no-floating-promises
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ export const useContentSearchResults = ({
188188 // called while already fetching a page, and parameters (like 'event') should not be passed into fetchNextPage().
189189 // See https://tanstack.com/query/v4/docs/framework/react/guides/infinite-queries
190190 fetchNextPage : ( ) => {
191+ // istanbul ignore if: infinite query pagination is pretty complex to test properly
191192 if ( ! query . isFetching && ! query . isFetchingNextPage ) {
192193 // eslint-disable-next-line @typescript-eslint/no-floating-promises
193194 query . fetchNextPage ( ) ;
You can’t perform that action at this time.
0 commit comments