GitHub
08/23/2023, 4:12 AMaccountId: fromProviderState('${accountId}', accountId)
In the debug logs I can see it populating correctly with correct type
Calling match_values for path $.accountId
Comparing '1686819389' to '1686819389' using Type -> Ok(())
Comparing 'Number([1686819389](tel:1686819389))' to 'Number([1686819389](tel:1686819389))' at path '$.accountId' -> Ok(())
body: '{…….. ,"accountId":1686819389}'
In my provider:
int accountId = 2;
providerStateParameters.put(ACCOUNT_ID, accountId);
In the debug logs:
****I set my account id as: 1689080143238***
body: PRESENT({………..,"accountId":"1689080143238"})
Both consumer (pact-js) and provider (pact-jvm) are on the latest version
pact-foundation/pact-js