diff --git a/vitest.setup.ts b/vitest.setup.ts index d75dd66b..f945ea95 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -129,10 +129,7 @@ class NangoActionMock { const updatedBodyOrParams = paginateInBody ? (args.data as Record) || {} : args.params || {}; if (args.paginate['limit']) { - const limitParameterName = args.paginate.limit_name_in_request; - if (!limitParameterName) { - throw new Error('limit_name_in_request is required when using pagination'); - } + const limitParameterName = args.paginate.limit_name_in_request!; updatedBodyOrParams[limitParameterName] = args.paginate['limit']; }