This PR adds attribution info to the exported file, in the form of two new fields generator_name and generator_version.
Here is a summary of the changes:
Updated the package name to match the name of the repo
Added to the fields to the object returned at RuleExporter.export
The version is retrieved using Electron's app.getVersion()
The name is NOT coming from Electron's app.getName() because it defaults to the user-friendly field in productName.
Moved the existing electron mock to the global mocks folder, so the same object is used by all tests (otherwise jest will detect a duplicated mock and will pick only one of them)
Fixed existing unit tests to account for the two new attribution fields in the JSON file
Added new unit tests to validate the presence of the two new fields in the JSON file
This PR adds attribution info to the exported file, in the form of two new fields
generator_name
andgenerator_version
.Here is a summary of the changes:
RuleExporter.export
app.getVersion()
app.getName()
because it defaults to the user-friendly field inproductName
.electron
mock to the global mocks folder, so the same object is used by all tests (otherwise jest will detect a duplicated mock and will pick only one of them)