mathjax / MathJax-src

MathJax source code for version 3 and beyond
https://www.mathjax.org/
Apache License 2.0
2.05k stars 205 forks source link

Add tests for all ts/util files and update some utils to fix issues found from tests #1105

Closed dpvc closed 3 months ago

dpvc commented 3 months ago

This PR adds tests for all ts/util files and updates the length tests to 100% coverage. While writing the tests, some issues were found with the util files, and these are also fixed here (they are at the bottom of the list).

I've also added some coverage exclusions to the jest configuration file to prevent some files from showing own the coverage that aren't needed.

dpvc commented 3 months ago

I've also updated the tsconfig.json file to compile to a js directory so that .js files aren't produced in the tests directories when editing the files in emacs, and added the js directory to the .gitignore file.