mennolui / wp-foyer

Foyer - a free Digital Signage plugin for WordPress. Perfect for theaters, music venues, cinemas and festivals.
GNU General Public License v3.0
49 stars 22 forks source link

Javascript unit testing wanted, making the front-end less error prone #33

Open mennolui opened 5 years ago

mennolui commented 5 years ago

Foyer displays, and some slides/backgrounds, rely heavily on Javascript. Unlike for the PHP code I did not set up unit testing for the Javascript front-end. Mainly because I have no experience with Javascript unit testing. Also I'm not sure which of the many tools to use.

To make sure the front-end works as intended, and remains working when adding features or fixing bugs, I'd like to add Javascript unit testing. Preferably 'the WordPress way'.

Any help with setting this up, or making choices, is very welcome!

mennolui commented 5 years ago

WordPress Core seems to use QUnit, but Gutenberg seems to use Jest.

https://wordpress.org/gutenberg/handbook/reference/testing-overview/ https://make.wordpress.org/core/2013/09/13/javascript-unit-tests-for-core/