{"action":"created","issue":{"url":"https://api.github.com/repos/skpm/skpm/issues/175","repository_url":"https://api.github.com/repos/skpm/skpm","labels_url":"https://api.github.com/repos/skpm/skpm/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/skpm/skpm/issues/175/comments","events_url":"https://api.github.com/repos/skpm/skpm/issues/175/events","html_url":"https://github.com/skpm/skpm/issues/175","id":345922541,"node_id":"MDU6SXNzdWUzNDU5MjI1NDE=","number":175,"title":"Loading a file in `@skpm/test-runner`","user":{"login":"10xLaCroixDrinker","id":517295,"node_id":"MDQ6VXNlcjUxNzI5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/517295?v=4","gravatar_id":"","url":"https://api.github.com/users/10xLaCroixDrinker","html_url":"https://github.com/10xLaCroixDrinker","followers_url":"https://api.github.com/users/10xLaCroixDrinker/followers","following_url":"https://api.github.com/users/10xLaCroixDrinker/following{/other_user}","gists_url":"https://api.github.com/users/10xLaCroixDrinker/gists{/gist_id}","starred_url":"https://api.github.com/users/10xLaCroixDrinker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10xLaCroixDrinker/subscriptions","organizations_url":"https://api.github.com/users/10xLaCroixDrinker/orgs","repos_url":"https://api.github.com/users/10xLaCroixDrinker/repos","events_url":"https://api.github.com/users/10xLaCroixDrinker/events{/privacy}","received_events_url":"https://api.github.com/users/10xLaCroixDrinker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T20:29:28Z","updated_at":"2018-07-31T03:15:00Z","closed_at":null,"author_association":"NONE","body":"I'm having issues opening a file in my test suite. When I do the following I get a file not found error as its looking in the wrong directory.\r\n\r\n```js\r\nDocument.open('./test.sketch', (err, document) => {\r\n  if (err) throw err;\r\n  test('should do something', (context, document) => {\r\n    plugin(context);\r\n  });\r\n});\r\n```\r\n\r\n```\r\nError Domain=NSCocoaErrorDomain Code=260 \"The file “test.sketch” couldn’t be opened because there is no such file.\" UserInfo={NSURL=test.sketch -- file:///private/var/folders/s_/mnjjls1d6wjfcqnlb_502p_15_kp66/T/com.bohemiancoding.sketch3/Mirror%20Web/F9ABEFC3-685C-4ADA-9E5D-3E219BD3DBFE-41361-0000793564E257E2/, NSFilePath=/private/var/folders/s_/mnjjls1d6wjfcqnlb_502p_15_kp66/T/com.bohemiancoding.sketch3/Mirror Web/F9ABEFC3-685C-4ADA-9E5D-3E219BD3DBFE-41361-0000793564E257E2/test.sketch, NSUnderlyingError=0x60c002c4f990 {Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"}}\r\n```\r\n\r\nIs there something I need to add to get it to look in the same directory as my test suite?"},"comment":{"url":"https://api.github.com/repos/skpm/skpm/issues/comments/409080630","html_url":"https://github.com/skpm/skpm/issues/175#issuecomment-409080630","issue_url":"https://api.github.com/repos/skpm/skpm/issues/175","id":409080630,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTA4MDYzMA==","user":{"login":"mathieudutour","id":3254314,"node_id":"MDQ6VXNlcjMyNTQzMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3254314?v=4","gravatar_id":"","url":"https://api.github.com/users/mathieudutour","html_url":"https://github.com/mathieudutour","followers_url":"https://api.github.com/users/mathieudutour/followers","following_url":"https://api.github.com/users/mathieudutour/following{/other_user}","gists_url":"https://api.github.com/users/mathieudutour/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieudutour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieudutour/subscriptions","organizations_url":"https://api.github.com/users/mathieudutour/orgs","repos_url":"https://api.github.com/users/mathieudutour/repos","events_url":"https://api.github.com/users/mathieudutour/events{/privacy}","received_events_url":"https://api.github.com/users/mathieudutour/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T03:15:00Z","updated_at":"2018-07-31T03:15:00Z","author_association":"MEMBER","body":"Hum that's a good question. As you might have guess, your tests are bundled and run as a sketch plugin. That means that the execution path is different than your source path.\r\n\r\nI'm not sure what's the solution, I'll think about it (as a workaround for now, you can specify the absolute path)"}}
{"actor":{"display_login":"mathieudutour"}}