{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/881","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/881/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/881/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/881/events","html_url":"https://github.com/parcel-bundler/parcel/pull/881","id":299414163,"number":881,"title":"Improve test stability","user":{"login":"DeMoorJasper","id":2175521,"avatar_url":"https://avatars1.githubusercontent.com/u/2175521?v=4","gravatar_id":"","url":"https://api.github.com/users/DeMoorJasper","html_url":"https://github.com/DeMoorJasper","followers_url":"https://api.github.com/users/DeMoorJasper/followers","following_url":"https://api.github.com/users/DeMoorJasper/following{/other_user}","gists_url":"https://api.github.com/users/DeMoorJasper/gists{/gist_id}","starred_url":"https://api.github.com/users/DeMoorJasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeMoorJasper/subscriptions","organizations_url":"https://api.github.com/users/DeMoorJasper/orgs","repos_url":"https://api.github.com/users/DeMoorJasper/repos","events_url":"https://api.github.com/users/DeMoorJasper/events{/privacy}","received_events_url":"https://api.github.com/users/DeMoorJasper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T16:14:27Z","updated_at":"2018-02-22T17:26:11Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/parcel-bundler/parcel/pulls/881","html_url":"https://github.com/parcel-bundler/parcel/pull/881","diff_url":"https://github.com/parcel-bundler/parcel/pull/881.diff","patch_url":"https://github.com/parcel-bundler/parcel/pull/881.patch"},"body":"* Creates a subfolder in dist and input per tests that requires it. These are removed before test if it already exists, this prevents the randomly failing tests we've had and have. Also makes the need for the `await sleep(...)` fix obsolete\r\n```Javascript\r\n// Previous hacky fix\r\nif (process.platform === 'win32') {\r\n  await sleep(50);\r\n}\r\nawait sleep(50);\r\nrimraf.sync(path.join(__dirname, 'dist'));\r\n```\r\n* Fixed failing tests on the slower Node 6 test environment\r\n* Adds the possibility to run tests in parallel in the future (e.g. using jest or ava)\r\n* Tests should run slightly faster"},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/367756250","html_url":"https://github.com/parcel-bundler/parcel/pull/881#issuecomment-367756250","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/881","id":367756250,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars0.githubusercontent.com/u/8655789?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T17:26:11Z","updated_at":"2018-02-22T17:26:11Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=h1) Report\n> Merging [#881](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=desc) into [master](https://codecov.io/gh/parcel-bundler/parcel/commit/32c38e599161372cd47924f0f4cf2aae32eb5b83?src=pr&el=desc) will **increase** coverage by `0.88%`.\n> The diff coverage is `n/a`.\n\n[![Impacted file tree graph](https://codecov.io/gh/parcel-bundler/parcel/pull/881/graphs/tree.svg?src=pr&width=650&token=4b46CCDFY1&height=150)](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff            @@\n##           master    #881      +/-   ##\n=========================================\n+ Coverage   88.92%   89.8%   +0.88%     \n=========================================\n  Files          68      68              \n  Lines        3440    3434       -6     \n=========================================\n+ Hits         3059    3084      +25     \n+ Misses        381     350      -31\n```\n\n\n| [Impacted Files](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [src/assets/ReasonAsset.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL2Fzc2V0cy9SZWFzb25Bc3NldC5qcw==) | `91.66% <0%> (-8.34%)` | :arrow_down: |\n| [src/assets/CSSAsset.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL2Fzc2V0cy9DU1NBc3NldC5qcw==) | `81.73% <0%> (-4.35%)` | :arrow_down: |\n| [src/utils/config.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL3V0aWxzL2NvbmZpZy5qcw==) | `85.5% <0%> (-2.9%)` | :arrow_down: |\n| [src/assets/StylusAsset.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL2Fzc2V0cy9TdHlsdXNBc3NldC5qcw==) | `81.01% <0%> (-2.54%)` | :arrow_down: |\n| [src/Bundler.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL0J1bmRsZXIuanM=) | `92.51% <0%> (-0.35%)` | :arrow_down: |\n| [src/transforms/babel.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybXMvYmFiZWwuanM=) | `94.66% <0%> (+0.48%)` | :arrow_up: |\n| [src/utils/installPackage.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL3V0aWxzL2luc3RhbGxQYWNrYWdlLmpz) | `63.49% <0%> (+1.58%)` | :arrow_up: |\n| [src/visitors/dependencies.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL3Zpc2l0b3JzL2RlcGVuZGVuY2llcy5qcw==) | `89.61% <0%> (+7.79%)` | :arrow_up: |\n| [src/visitors/fs.js](https://codecov.io/gh/parcel-bundler/parcel/pull/881/diff?src=pr&el=tree#diff-c3JjL3Zpc2l0b3JzL2ZzLmpz) | `81.25% <0%> (+23.61%)` | :arrow_up: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=footer). Last update [32c38e5...e86f5e2](https://codecov.io/gh/parcel-bundler/parcel/pull/881?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov-io"}}