mocker-api
mocker-api copied to clipboard
Feature: Add option for additional files/folders to be watched
Is your feature request related to a problem? Please describe.
Some files, used as mock dependencies can be out of the mock folder(s). E.g. configurations, files shared with main project, etc. To make sure any related change in that files accepted by mocker, they also should be watched.
Describe the solution you'd like
MockerOption can have a field like filesToWatch (additionalFilesToWatch, watchFiles, etc., next to the field watchOptions), that can contain array of additional files and folders. All that entries should be added to watch list, but not to mock list. The minimal resolution should be file, because it can be, for example, placed at the root folder of a project and we don't want to watch the whole project.
Issue Checklist
- [x] I have checked for other similar issues
- [x] I have explained why this change is important
- [ ] I have added necessary documentation (if appropriate)