You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i @adobe/target-nodejs-sdk
npm i --save-dev jest
touch index.js
# import the sdk
touch index.test.js
# write a jest test requiring the MarketingCloudClient
nvm install 20
nvm use 20
npx jest index.test.js
Platform and Version
@adobe/target-nodejs-sdk v2.4.3
node v20.3.1
jest v29.6.0
Expected Behaviour
SDK should not have polyfill issues when running Jest tests
Actual Behaviour
SDK has polyfill TypeError when running Jest tests
Steps to Reproduce
Readme describes it best: https://github.com/hochoy/adobe-target-jest-node-compatibility/blob/main/README.md
The bug is reproduced in the minimal repo above.
Here's the gist of it
Platform and Version
@adobe/target-nodejs-sdk v2.4.3
node v20.3.1
jest v29.6.0
Sample Code that illustrates the problem
https://github.com/hochoy/adobe-target-jest-node-compatibility/tree/main
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: