{"action":"created","comment":{"url":"https://api.github.com/repos/MoOx/statinamic/pulls/comments/56095817","id":56095817,"diff_hunk":"@@ -18,35 +18,43 @@ export default async function test(\n   target,\n   { cleanup, init } = { cleanup: noop, init: noop }\n ) {\n-  const targetModules = `${ target }/node_modules`\n-\n-  cleanup()\n-\n-  await Promise.all([\n-    // node_modules link to avoid duplicate package related issues\n-    lnfs(\"node_modules/react/\", `${ targetModules }/react`),\n-    lnfs(\"node_modules/react-helmet\", `${ targetModules }/react-helmet`),\n-    lnfs(\"node_modules/webpack\", `${ targetModules }/webpack`),\n-\n-    // delete statinamic link to pruning devdeps\n-    rm(`${ targetModules }/statinamic`),\n-  ])\n-\n-  await init()\n-\n-  // install\n-  await exec(\"npm prune\", { cwd: target })\n-  await exec(\"npm install\", { cwd: target })\n-\n-  // we don't use a link on statinamic directly, otherwise\n-  // statinamic/node_modules contains too many dependencies (dev deps) and the\n-  // prune that will be executed next time will remove some, which goes again\n-  // what we try to achieve by tuning the install to have a fast CI\n-  await cmdShim(\"lib/bin/index.js\", `${ targetModules }/.bin/statinamic`)\n-  await lnfs(\"lib/bin/index.js\", `${ targetModules }/.bin/statinamic`)\n-  await lnfs(\"lib\", `${ targetModules }/statinamic/lib`)\n-  await lnfs(\"package.json\", `${ targetModules }/statinamic/package.json`)\n-\n-  // test\n-  return exec(\"npm test\", { cwd: target })\n+  try {\n+    const targetModules = `${ target }/node_modules`\n+\n+    cleanup()\n+\n+    await Promise.all([\n+      // node_modules link to avoid duplicate package related issues\n+      lnfs(\"node_modules/react/\", `${ targetModules }/react`),\n+      lnfs(\"node_modules/react-helmet\", `${ targetModules }/react-helmet`),\n+      lnfs(\"node_modules/webpack\", `${ targetModules }/webpack`),\n+\n+      // delete statinamic link to pruning devdeps\n+      rm(`${ targetModules }/statinamic`),\n+    ])\n+\n+    await init()\n+\n+    // install\n+    await exec(\"npm prune\", { cwd: target })\n+    await exec(\"npm install\", { cwd: target })\n+\n+    // we don't use a link on statinamic directly, otherwise\n+    // statinamic/node_modules contains too many dependencies (dev deps) and the\n+    // prune that will be executed next time will remove some, which goes again\n+    // what we try to achieve by tuning the install to have a fast CI\n+    await cmdShim(\"lib/bin/index.js\", `${ targetModules }/.bin/statinamic`)\n+    await lnfs(\"lib/bin/index.js\", `${ targetModules }/.bin/statinamic`)\n+    await lnfs(\"lib\", `${ targetModules }/statinamic/lib`)\n+    await lnfs(\"package.json\", `${ targetModules }/statinamic/package.json`)\n+\n+    // test\n+    await exec(\"npm test\", { cwd: target })\n+  }\n+  catch (err) {\n+    // async workaround :)\n+    setTimeout(() => {","path":"scripts/utils/test-folder.js","position":70,"original_position":70,"commit_id":"83a8d5b93c5c45007d7b2bfb81c991e5f320f19f","original_commit_id":"83a8d5b93c5c45007d7b2bfb81c991e5f320f19f","user":{"login":"thangngoc89","id":3049054,"avatar_url":"https://avatars.githubusercontent.com/u/3049054?v=3","gravatar_id":"","url":"https://api.github.com/users/thangngoc89","html_url":"https://github.com/thangngoc89","followers_url":"https://api.github.com/users/thangngoc89/followers","following_url":"https://api.github.com/users/thangngoc89/following{/other_user}","gists_url":"https://api.github.com/users/thangngoc89/gists{/gist_id}","starred_url":"https://api.github.com/users/thangngoc89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangngoc89/subscriptions","organizations_url":"https://api.github.com/users/thangngoc89/orgs","repos_url":"https://api.github.com/users/thangngoc89/repos","events_url":"https://api.github.com/users/thangngoc89/events{/privacy}","received_events_url":"https://api.github.com/users/thangngoc89/received_events","type":"User","site_admin":false},"body":"Is setImediate better? ","created_at":"2016-03-14T23:47:39Z","updated_at":"2016-03-14T23:47:39Z","html_url":"https://github.com/MoOx/statinamic/pull/310#discussion_r56095817","pull_request_url":"https://api.github.com/repos/MoOx/statinamic/pulls/310","_links":{"self":{"href":"https://api.github.com/repos/MoOx/statinamic/pulls/comments/56095817"},"html":{"href":"https://github.com/MoOx/statinamic/pull/310#discussion_r56095817"},"pull_request":{"href":"https://api.github.com/repos/MoOx/statinamic/pulls/310"}}},"pull_request":{"url":"https://api.github.com/repos/MoOx/statinamic/pulls/310","id":62819710,"html_url":"https://github.com/MoOx/statinamic/pull/310","diff_url":"https://github.com/MoOx/statinamic/pull/310.diff","patch_url":"https://github.com/MoOx/statinamic/pull/310.patch","issue_url":"https://api.github.com/repos/MoOx/statinamic/issues/310","number":310,"state":"open","locked":false,"title":"Be able to break the build during boilerplate and docs tests","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"body":"Closes #309","created_at":"2016-03-14T21:23:35Z","updated_at":"2016-03-14T23:47:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70b349cc9b7aa0b659731d843cda1d11148b2501","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MoOx/statinamic/pulls/310/commits","review_comments_url":"https://api.github.com/repos/MoOx/statinamic/pulls/310/comments","review_comment_url":"https://api.github.com/repos/MoOx/statinamic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MoOx/statinamic/issues/310/comments","statuses_url":"https://api.github.com/repos/MoOx/statinamic/statuses/83a8d5b93c5c45007d7b2bfb81c991e5f320f19f","head":{"label":"MoOx:break-build","ref":"break-build","sha":"83a8d5b93c5c45007d7b2bfb81c991e5f320f19f","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"repo":{"id":41730120,"name":"statinamic","full_name":"MoOx/statinamic","owner":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MoOx/statinamic","description":":scream: Modern static website generator to create dynamic websites using React components :sparkles:","fork":false,"url":"https://api.github.com/repos/MoOx/statinamic","forks_url":"https://api.github.com/repos/MoOx/statinamic/forks","keys_url":"https://api.github.com/repos/MoOx/statinamic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MoOx/statinamic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MoOx/statinamic/teams","hooks_url":"https://api.github.com/repos/MoOx/statinamic/hooks","issue_events_url":"https://api.github.com/repos/MoOx/statinamic/issues/events{/number}","events_url":"https://api.github.com/repos/MoOx/statinamic/events","assignees_url":"https://api.github.com/repos/MoOx/statinamic/assignees{/user}","branches_url":"https://api.github.com/repos/MoOx/statinamic/branches{/branch}","tags_url":"https://api.github.com/repos/MoOx/statinamic/tags","blobs_url":"https://api.github.com/repos/MoOx/statinamic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MoOx/statinamic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MoOx/statinamic/git/refs{/sha}","trees_url":"https://api.github.com/repos/MoOx/statinamic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MoOx/statinamic/statuses/{sha}","languages_url":"https://api.github.com/repos/MoOx/statinamic/languages","stargazers_url":"https://api.github.com/repos/MoOx/statinamic/stargazers","contributors_url":"https://api.github.com/repos/MoOx/statinamic/contributors","subscribers_url":"https://api.github.com/repos/MoOx/statinamic/subscribers","subscription_url":"https://api.github.com/repos/MoOx/statinamic/subscription","commits_url":"https://api.github.com/repos/MoOx/statinamic/commits{/sha}","git_commits_url":"https://api.github.com/repos/MoOx/statinamic/git/commits{/sha}","comments_url":"https://api.github.com/repos/MoOx/statinamic/comments{/number}","issue_comment_url":"https://api.github.com/repos/MoOx/statinamic/issues/comments{/number}","contents_url":"https://api.github.com/repos/MoOx/statinamic/contents/{+path}","compare_url":"https://api.github.com/repos/MoOx/statinamic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MoOx/statinamic/merges","archive_url":"https://api.github.com/repos/MoOx/statinamic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MoOx/statinamic/downloads","issues_url":"https://api.github.com/repos/MoOx/statinamic/issues{/number}","pulls_url":"https://api.github.com/repos/MoOx/statinamic/pulls{/number}","milestones_url":"https://api.github.com/repos/MoOx/statinamic/milestones{/number}","notifications_url":"https://api.github.com/repos/MoOx/statinamic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MoOx/statinamic/labels{/name}","releases_url":"https://api.github.com/repos/MoOx/statinamic/releases{/id}","deployments_url":"https://api.github.com/repos/MoOx/statinamic/deployments","created_at":"2015-09-01T09:40:57Z","updated_at":"2016-03-14T23:05:13Z","pushed_at":"2016-03-14T21:31:00Z","git_url":"git://github.com/MoOx/statinamic.git","ssh_url":"git@github.com:MoOx/statinamic.git","clone_url":"https://github.com/MoOx/statinamic.git","svn_url":"https://github.com/MoOx/statinamic","homepage":"http://moox.io/statinamic/","size":4978,"stargazers_count":427,"watchers_count":427,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":45,"forks":19,"open_issues":45,"watchers":427,"default_branch":"next"}},"base":{"label":"MoOx:next","ref":"next","sha":"643a4509feefefc3d52194b6ba2182e938c08871","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"repo":{"id":41730120,"name":"statinamic","full_name":"MoOx/statinamic","owner":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MoOx/statinamic","description":":scream: Modern static website generator to create dynamic websites using React components :sparkles:","fork":false,"url":"https://api.github.com/repos/MoOx/statinamic","forks_url":"https://api.github.com/repos/MoOx/statinamic/forks","keys_url":"https://api.github.com/repos/MoOx/statinamic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MoOx/statinamic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MoOx/statinamic/teams","hooks_url":"https://api.github.com/repos/MoOx/statinamic/hooks","issue_events_url":"https://api.github.com/repos/MoOx/statinamic/issues/events{/number}","events_url":"https://api.github.com/repos/MoOx/statinamic/events","assignees_url":"https://api.github.com/repos/MoOx/statinamic/assignees{/user}","branches_url":"https://api.github.com/repos/MoOx/statinamic/branches{/branch}","tags_url":"https://api.github.com/repos/MoOx/statinamic/tags","blobs_url":"https://api.github.com/repos/MoOx/statinamic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MoOx/statinamic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MoOx/statinamic/git/refs{/sha}","trees_url":"https://api.github.com/repos/MoOx/statinamic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MoOx/statinamic/statuses/{sha}","languages_url":"https://api.github.com/repos/MoOx/statinamic/languages","stargazers_url":"https://api.github.com/repos/MoOx/statinamic/stargazers","contributors_url":"https://api.github.com/repos/MoOx/statinamic/contributors","subscribers_url":"https://api.github.com/repos/MoOx/statinamic/subscribers","subscription_url":"https://api.github.com/repos/MoOx/statinamic/subscription","commits_url":"https://api.github.com/repos/MoOx/statinamic/commits{/sha}","git_commits_url":"https://api.github.com/repos/MoOx/statinamic/git/commits{/sha}","comments_url":"https://api.github.com/repos/MoOx/statinamic/comments{/number}","issue_comment_url":"https://api.github.com/repos/MoOx/statinamic/issues/comments{/number}","contents_url":"https://api.github.com/repos/MoOx/statinamic/contents/{+path}","compare_url":"https://api.github.com/repos/MoOx/statinamic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MoOx/statinamic/merges","archive_url":"https://api.github.com/repos/MoOx/statinamic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MoOx/statinamic/downloads","issues_url":"https://api.github.com/repos/MoOx/statinamic/issues{/number}","pulls_url":"https://api.github.com/repos/MoOx/statinamic/pulls{/number}","milestones_url":"https://api.github.com/repos/MoOx/statinamic/milestones{/number}","notifications_url":"https://api.github.com/repos/MoOx/statinamic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MoOx/statinamic/labels{/name}","releases_url":"https://api.github.com/repos/MoOx/statinamic/releases{/id}","deployments_url":"https://api.github.com/repos/MoOx/statinamic/deployments","created_at":"2015-09-01T09:40:57Z","updated_at":"2016-03-14T23:05:13Z","pushed_at":"2016-03-14T21:31:00Z","git_url":"git://github.com/MoOx/statinamic.git","ssh_url":"git@github.com:MoOx/statinamic.git","clone_url":"https://github.com/MoOx/statinamic.git","svn_url":"https://github.com/MoOx/statinamic","homepage":"http://moox.io/statinamic/","size":4978,"stargazers_count":427,"watchers_count":427,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":45,"forks":19,"open_issues":45,"watchers":427,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/MoOx/statinamic/pulls/310"},"html":{"href":"https://github.com/MoOx/statinamic/pull/310"},"issue":{"href":"https://api.github.com/repos/MoOx/statinamic/issues/310"},"comments":{"href":"https://api.github.com/repos/MoOx/statinamic/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/MoOx/statinamic/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/MoOx/statinamic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MoOx/statinamic/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/MoOx/statinamic/statuses/83a8d5b93c5c45007d7b2bfb81c991e5f320f19f"}}}}