The parsing that is done by the JS file could be tested with Jest, using `execFileSync()` and some dummy file. See https://github.com/swissspidy/wp-performance-action for an example.