adobe / aem-spa-project-archetype

Maven Archetype for creating new AEM SPA projects
Apache License 2.0
61 stars 32 forks source link

[react-app] Migrate karma tests to jest #36

Closed lydiapuric closed 5 years ago

lydiapuric commented 5 years ago

With https://github.com/adobe/aem-spa-project-archetype/pull/27 jest is used for testing. Migrate the existing karma test to jest.

lydiapuric commented 5 years ago

WIP, see https://github.com/adobe/aem-spa-project-archetype/compare/issue/0036

lydiapuric commented 5 years ago

Checking around for the usage of MutationObserver: It looks like MutationObserver is not supported in jest - respectively in jsdom - and there is no plan to support it. I might create a mock implementation of MutationObserver that behaves how we need.

lydiapuric commented 5 years ago

Debugging with Jest: https://git.corp.adobe.com/sitesexp/snippets/issues/3