In projects that have testing frameworks with file mocking capabilities (e.g. Jest with moduleNameMapper), some implementations could replace the contents of .json with an empty {} mock. Since these configurations could be global, it will also affect vendors.json, as well. It is more reliable to convert this list into an exportable json payload from a js file so it won't run into these false positives.
In projects that have testing frameworks with file mocking capabilities (e.g. Jest with moduleNameMapper), some implementations could replace the contents of
.json
with an empty {} mock. Since these configurations could be global, it will also affectvendors.json
, as well. It is more reliable to convert this list into an exportable json payload from a js file so it won't run into these false positives.