watson / ci-info

Get details about the current Continuous Integration environment
MIT License
321 stars 50 forks source link

Converted vendors.json to vendor.js, export the array of available ci options instead. #40

Closed freestylebit closed 5 years ago

freestylebit commented 5 years ago

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.