Improve documentation on how to test Booster apps
Documentation bugs and improvements
Some work is necessary to improve the documentation and make the testing experience on Booster better
Description
Some of the issues found when trying to test a Booster application were:
- It is required to install the following libraries:
sion,sion-chai,chai,chai-promisedand their respective@typesdependencies. Perhaps they could be already installed with theboost:new projectcommand (or using a new specific command to setup testing) - The
testsfolder should be moved to thetsconfig.json. There is an issue here. Apparently,./srcis set to be therootDir. This forces thetestfolder to be inside it in order to be transpiled - One example on the docs is deprecated. The following code:
const register = new Register('request-id-1')
Does not work because the Register constructor requires two arguments. It is not clear what the second argument is.
This is a Discord conversation related to this issue where many users discuss about the right way to configure Jest to work in Booster apps: https://discord.com/channels/763753198388510780/1044231044251013190
@BorjaZarco Hi - is this still open?
Yes @Will-Marriott, it's open, are you considering working on it?
Yes @Will-Marriott, it's open, are you considering working on it?
Yes I'd like to work on it :)
Awesome, thanks! I'll assign the issue to you :-)