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
When writing unit tests for modules which use storageManager, we need a better way to mock reading and setting cookies/local storage. As of now, lots of modules are doing it differently.
Relying on browsers in circle ci (and local browsers) to actually set and read back this data is not stable enough for unit tests.
So, we should create a mock which modules can import to their _spec files. Similar to how we mock XHR requests using test/mocks/server.js
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Type of issue
Test Enhancements
Description
When writing unit tests for modules which use storageManager, we need a better way to mock reading and setting cookies/local storage. As of now, lots of modules are doing it differently.
Relying on browsers in circle ci (and local browsers) to actually set and read back this data is not stable enough for unit tests.
So, we should create a mock which modules can import to their
_spec
files. Similar to how we mock XHR requests usingtest/mocks/server.js
See #5758 for the conversations and more details.
The text was updated successfully, but these errors were encountered: