{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/6370","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/6370/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/6370/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/6370/events","html_url":"https://github.com/facebook/jest/issues/6370","id":328327844,"node_id":"MDU6SXNzdWUzMjgzMjc4NDQ=","number":6370,"title":"File paths shouldn't be reported with backslashes","user":{"login":"JoshuaKGoldberg","id":3335181,"node_id":"MDQ6VXNlcjMzMzUxODE=","avatar_url":"https://avatars1.githubusercontent.com/u/3335181?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-31T23:11:38Z","updated_at":"2018-06-01T03:32:57Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## 🐛 Bug Report\r\n\r\nOn Windows, file paths in tests reports on the CLI are reported using backslashes (likely from the default `path.join`):\r\n\r\n```\r\n$ jest\r\n FAIL  src\\my\\directory\\File.test.ts\r\n    MyContents\r\n      ...\r\n```\r\n\r\nThat's inconvenient because you can't run `jest <path-to-file>` to run just that file.\r\n\r\n* ✔ works: `jest src/my/directory/File.test.ts`\r\n* ❌ no matches: `jest src\\my\\directory\\File.test.ts`\r\n\r\n## To Reproduce\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. Create a test file within a directory\r\n2. On Windows, run `jest` or any flags variant that runs that file\r\n3. Copy & paste the file contents from the reporter as a matcher to `jest` on the CLI\r\n4. Observe no matches\r\n\r\n## Expected behavior\r\n\r\nLess proliferation of the inconvenience that is the backslash!\r\n\r\n## Run `npx envinfo --preset jest`\r\n\r\nPaste the results here:\r\n\r\n```bash\r\n System:\r\n    OS: Windows 10\r\n    CPU: x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz\r\n  Binaries:\r\n    Yarn: 1.5.1 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD\r\n    npm: 3.10.10 - C:\\Code\\WebClient\\node_modules\\.bin\\npm.CMD\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/393748180","html_url":"https://github.com/facebook/jest/issues/6370#issuecomment-393748180","issue_url":"https://api.github.com/repos/facebook/jest/issues/6370","id":393748180,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzc0ODE4MA==","user":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T03:32:57Z","updated_at":"2018-06-01T03:32:57Z","author_association":"COLLABORATOR","body":"Wait no - we report with slash, but I suppose we still match on backslash?"}}
{"actor":{"display_login":"SimenB"}}