What to test in JavaScript?

Developer Yireo


Tech Talk

JavaScript becomes more important in the Magento 2 sphere, especially with the existing RequireJS/KnockoutJS stack and the upcoming PWA stack. This talk is a contemplation on JavaScript testing tools and which tool to apply for which kind of testing (browser automation, DOM replication, unit testing, integration testing). You can expect a sumup of tools that are useful to generic JS libraries, KnockoutJS-driven UiComponents and React components. Some bits are generic advice, some bits are personal thoughts, some bits are best practices that are developed along the way.