botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
23 stars 21 forks source link

chore: rm ts-jest and almost all jest config files #146

Closed franklevasseur closed 2 years ago

franklevasseur commented 2 years ago

really big simplification of jest configurations

Basically, if you run yarn test at root of repo, you run jest on the packages/ directory on *.js files.

If you run yarn test inside a specific package, you run jest on dist/ directory also on on *.js files.

No need to transpile *.ts test files with babel or ts-jest. Just build the test and run it afterward.

Tests are now way faster and easier to debug using sourceMaps: true.