lexicongovernance / pluraltools-backend

Backend implementation of the plural voting tool.
https://demo.lexicongovernance.org/
GNU General Public License v3.0
3 stars 1 forks source link

Configuration improvements #274

Closed MartinBenediktBusch closed 7 months ago

MartinBenediktBusch commented 7 months ago

This PR improves our configuration:

  1. Delete .eslintignore file and include the ignore patterns in the eslintrc.js file to make it consistent with how we do it in the frontend

  2. Exclude the services/auth directory from test converage reports as I dont think that is something that needs tests.

  3. Surpress console logs for passing tests. This has become an issue, especially since the quantity of tests is increasing. When you run pnpm test then the oputput is as follows:

current-situation

However, by surpressing logs for passing tests the output will look as follows (maybe it also increases the speed a bit):

resutl

However, when a test fails the logs will be displayed. Even better only logs for faild tests will be displayed which makes it easier to locate them:

only show failing tests