{"action":"created","issue":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/543","repository_url":"https://api.github.com/repos/paulmillr/chokidar","labels_url":"https://api.github.com/repos/paulmillr/chokidar/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/issues/543/comments","events_url":"https://api.github.com/repos/paulmillr/chokidar/issues/543/events","html_url":"https://github.com/paulmillr/chokidar/issues/543","id":184604023,"number":543,"title":"Fire change event without making an actual change to file","user":{"login":"ORESoftware","id":11139560,"avatar_url":"https://avatars.githubusercontent.com/u/11139560?v=3","gravatar_id":"","url":"https://api.github.com/users/ORESoftware","html_url":"https://github.com/ORESoftware","followers_url":"https://api.github.com/users/ORESoftware/followers","following_url":"https://api.github.com/users/ORESoftware/following{/other_user}","gists_url":"https://api.github.com/users/ORESoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/ORESoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORESoftware/subscriptions","organizations_url":"https://api.github.com/users/ORESoftware/orgs","repos_url":"https://api.github.com/users/ORESoftware/repos","events_url":"https://api.github.com/users/ORESoftware/events{/privacy}","received_events_url":"https://api.github.com/users/ORESoftware/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-22T02:59:48Z","updated_at":"2016-10-23T00:32:05Z","closed_at":"2016-10-23T00:32:05Z","body":"I am using this lib to run individual tests when they themselves change or to run the whole test suite if certain files in the project change.\r\n\r\nWhat I am doing sometimes is adding comments to files ('//') and then saving the file, just to get the watcher 'change' events to fire, so my tests run on demand, but that adds unnecessary comments to files and eventually they will end up in source control which is bad.\r\n\r\nIs there some keystrokes to use to fire a change event somehow if a file on the filesystem hasn't experience a change in its contents?"},"comment":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/comments/255562313","html_url":"https://github.com/paulmillr/chokidar/issues/543#issuecomment-255562313","issue_url":"https://api.github.com/repos/paulmillr/chokidar/issues/543","id":255562313,"user":{"login":"paulmillr","id":574696,"avatar_url":"https://avatars.githubusercontent.com/u/574696?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmillr","html_url":"https://github.com/paulmillr","followers_url":"https://api.github.com/users/paulmillr/followers","following_url":"https://api.github.com/users/paulmillr/following{/other_user}","gists_url":"https://api.github.com/users/paulmillr/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmillr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmillr/subscriptions","organizations_url":"https://api.github.com/users/paulmillr/orgs","repos_url":"https://api.github.com/users/paulmillr/repos","events_url":"https://api.github.com/users/paulmillr/events{/privacy}","received_events_url":"https://api.github.com/users/paulmillr/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T00:32:05Z","updated_at":"2016-10-23T00:32:05Z","body":"```\r\nconst watcher = chokidar.watch('dir')\r\nwatcher.emit('change', 'filepath')\r\n```\r\n\r\nthat should do the trick"}}
{"actor":{"display_login":"paulmillr"}}