As mentioned [here](https://github.com/MichMich/MagicMirror/pull/3200#issuecomment-1722567078) by @bugsounet the config.js is overwritten when running local tests. Possible solution: Make a backup of the config before starting the testsuite.