<commit_before>`a-start.js` and  `z-end` are used to establish respectively tear-down the [Mockgoose](https://www.npmjs.com/package/mockgoose) database connection.

Mockgoose is acting somehow unpredictable if `mockgoose(mongoose)` is called more than once.

Since the testing is done alphabetically regarding filenames, I decided to create the two files: `a-start.js` is always processed first and `z-end.js` is always the last file.<commit_msg>development<commit_after># UNIT TESTING

Unit tests cover all method and functions of the models and repositories, but not the routes.

To run unit tests:

```
computer:killergame-server user$ npm test
```
{'fraction_non_alphanumeric': 0.08448540706605223, 'fraction_numerical': 0.0, 'mean_word_length': 5.20952380952381, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6764126', 'n_tokens_mistral': 194, 'n_tokens_neox': 182, 'n_words': 78}