This has caused bugs in the past (the playgrounds disappeared at some point) and it makes it hard to upgrade mdbook (because we need to merge in changes to book.js manually).
It would be very helpful to have tests for these files. This should be something we can run on the command line in GitHub CI. I think we need something which
We can run on pre-rendered HTML files. I envision us running mdbook build (for each language).
A headless browser would then be needed to inspect the pages.
We would need a unit testing framework of some sort.
Today, we don't have any tests for the JavaScript code found in
mdbook
project).This has caused bugs in the past (the playgrounds disappeared at some point) and it makes it hard to upgrade
mdbook
(because we need to merge in changes tobook.js
manually).It would be very helpful to have tests for these files. This should be something we can run on the command line in GitHub CI. I think we need something which
mdbook build
(for each language).