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

chore: Remove unused App component breaking test watch mode #143

Merged
merged 1 commit into from
Jul 12, 2018

Conversation

zetlen
Copy link
Contributor

@zetlen zetlen commented Jul 11, 2018

This PR is a:

[ ] New feature
[ ] Enhancement/Optimization
[ ] Refactor
[x] Bugfix
[ ] Test for existing code
[ ] Documentation

Summary

  • Updated Jest dep to ^23.4.0, fixing fix: properly reprint resolver errors in watch mode jestjs/jest#6407 which caused our test:dev script to appear to hang when files were modified and Jest cache was absent. The original behavior froze at this message:

     Determining test suites to run...
    

    The new version of Jest properly prints the error message:

     Determining test suites to run...
    
     Configuration error:
    
     Could not locate module src/store/reducers/navigation mapped as:
     /Users/jzetlen/gits/pwa/pwa-studio/packages/venia-concept/src/store/reducers/navigation.
    
     Please check your configuration for these entries:
     {
       "moduleNameMapper": {
         "/^src\/(.+)/": "/Users/jzetlen/gits/pwa/pwa-studio/packages/venia-concept/src/$1"
       },
       "resolver": null
     }
    
  • Removed the App component, which is now unused due to the MagentoResolver calling RootComponents directly, and was the source of the mapping error above. Future errors of this kind will appear early and should be easier to diagnose and fix.

Additional information

- Updated Jest dep to `^23.4.0`, fixing jestjs/jest#6407 which caused our `test:dev` script to appear to hang when files were modified and Jest cache was absent. The original behavior froze at this message:

       Determining test suites to run...

  The new version of Jest properly prints the error message:

       Determining test suites to run...

       Configuration error:

       Could not locate module src/store/reducers/navigation mapped as:
       /Users/jzetlen/gits/pwa/pwa-studio/packages/venia-concept/src/store/reducers/navigation.

       Please check your configuration for these entries:
       {
         "moduleNameMapper": {
           "/^src\/(.+)/": "/Users/jzetlen/gits/pwa/pwa-studio/packages/venia-concept/src/$1"
         },
         "resolver": null
       }

- Removed the `App` component, which is now unused due to the `MagentoResolver` calling `RootComponents` directly, and was the source of the mapping error above. Future errors of this kind will appear early and should be easier to diagnose and fix.
@zetlen zetlen requested review from jimbo and DrewML July 11, 2018 19:35
@coveralls
Copy link

Pull Request Test Coverage Report for Build 237

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.3%) to 63.173%

Totals Coverage Status
Change from base Build 235: 1.3%
Covered Lines: 808
Relevant Lines: 1343

💛 - Coveralls

@jimbo jimbo merged commit f4bb931 into master Jul 12, 2018
@jimbo jimbo deleted the zetlen/remove-app-component branch July 12, 2018 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants