NYC configuration does not respect local configuration

Summary

Projects utilizing @openstapps/configuration get their package.json nyc config overwritten in the Gitlab CI test job. the values from @openstapps/configuration are applied.

Relevant Project (Logs)

https://gitlab.com/openstapps/core/-/jobs/167242258

What is the current bug behavior?

Overwriting the existing local nyc configuration.

What is the expected correct behavior?

Respect the existing local nyc configuration.

Possible fixes

Detect local nyc config and continue. Or replace

before_script:
  - npm install

with only one call to npm install in the beginning (build job/stage).

Edited by Rainer Killinger