Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jest-haste-map: add test to demonstrate broken behavior for platform-specific files #5508

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

jeanlauliac
Copy link
Contributor

When you have two files A.js and A.ios.js, removing the second one will not properly update jest-haste-map cache. This causes jest or dependents to crash, as they try to access a now non-existent path. This changeset adds a test that reproduce the issue, along with complementary tests to verify other variations on the theme are not broken. These tests try to ensure that the follow-up fix will not break the platform-specific files handling in other ways.

@jeanlauliac jeanlauliac force-pushed the add-platform-specific-deletion-test branch from 490f34c to b57160c Compare February 9, 2018 14:41
@codecov-io
Copy link

Codecov Report

Merging #5508 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5508   +/-   ##
=======================================
  Coverage   61.69%   61.69%           
=======================================
  Files         213      213           
  Lines        7077     7077           
  Branches        3        4    +1     
=======================================
  Hits         4366     4366           
  Misses       2710     2710           
  Partials        1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc14ac8...b57160c. Read the comment docs.

@cpojer cpojer merged commit 786f295 into master Feb 9, 2018
@cpojer
Copy link
Member

cpojer commented Feb 9, 2018

Nice!

@SimenB SimenB deleted the add-platform-specific-deletion-test branch February 10, 2018 11:36
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants