Branch for context:
https://github.com/h5p/h5p-true-false/tree/refs/heads/rpena/unit-test-prototype
I have been spiking on implementing unit testing for H5P libraries. I have been able to spin up an H5P server using this CLI tool in CI, and have a verified with a test that the network has been working correctly.
The next step for this process is to build whatever content type under test into the CLI under libraries. The problem I am facing now, is that whenever I try to build a content type, it seems to always pull from main.
I would like to add either a new CLI command, or modify the setup command to read a local library.json file, and not pull in the content type under test from main or a release branch. I want to build the H5P dependencies around the changes in PR to adequately unit test them against the CLI server.
https://github.com/h5p/h5p-cli/blob/master/cli.js#L175
https://github.com/h5p/h5p-cli/blob/master/logic.js#L451