Adds Express app tests (packages/nlu/src/nlu-server/app.test.ts)
This is not an exhaustive test suite for the whole app. Rather, this PR's goal is to create the test infrastructure, to easily add future tests.
Had to move the server startup to packages/nlu/src/nlu-server/index.ts in order to not leave open handles that would prevent Jest from exiting cleanly.
For the same reason, also had to extract the chokidar Watcher
Nice work!!!! Pretty sure the package-lock file should be removed. And there seems to have some linting warnings. Other than that tested and looks fine to me!
Adds Express app tests (
packages/nlu/src/nlu-server/app.test.ts
) This is not an exhaustive test suite for the whole app. Rather, this PR's goal is to create the test infrastructure, to easily add future tests.packages/nlu/src/nlu-server/index.ts
in order to not leave open handles that would prevent Jest from exiting cleanly.