momentohq / client-sdk-javascript

Official JavaScript SDK for Momento Serverless Cache
Apache License 2.0
55 stars 20 forks source link

fix: run webhook tests in web client with happy-dom #1415

Closed malandis closed 1 month ago

malandis commented 1 month ago

Because the web client needs fetch for the webhook tests, we must run those with @happy-dom/jest-environment, not with jsdom, which lacks that implementation.

To make matching webhook tests unambiguous, we move those to a webhooks directory and update the npm scripts appropriately.