Open olegforce opened 2 years ago
As mentioned in the https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues/15 looks like this issue is related that multi-cloud tests are not using dotenv
, which contradicts solution documentation that states all is going via dotenv
.
Hey @olegforce did you manage to make it work? My tests are also failing and the errors are not very helpful. Any idea on what could be failing?
@joacorma I didn't, I had to just accept and ignore those as they didn't impact the main functionality I was looking for. I would recommend you to open issue in this repository and show what issues you are facing so maybe someone else could help.
@olegforce when you run these tests individually they pass without any failure. I ran these tests individually
` mocha .\test_use-cases\b2c\customerRegistration.live.test.js
mocha .\test_use-cases\b2c\authentication.live.test.js
`
@saqibcloudconversion, tests will still fail if you use dotenv
approach, please read https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues/15 as well. The only solution is not to use dotenv
and keep one env
file per repository.
After running
npm run crm-sync:test:use-cases
tests following results are received:FYI it is the same instance that on weekend had only 5 failing tests as per >> this << reported issue and no changes have been done to end instances. The only change was introduced multiple environments via folder tree as per recommendations under >> this << ticket.