Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Abraham Brookes
    @AbrahamBrookes
    image.png
    wrapper is undefined because the v-alert error is causing the call to mount to fail, resulting in my let wrapper variable to never be assigned to
    excellent guide btw, the page on setting up the environment with CI and netlify alone is easily the best setup guide for the full pipeline I have ever seen - have shared it with my colleagues and they are all quite impressed
    Abraham Brookes
    @AbrahamBrookes
    I was on vuetify 2.4.0, just upgraded to 2.4.5, same error
    Abraham Brookes
    @AbrahamBrookes
    I'm dropping the v-alert component in favour of a div for now since I'm pretty sure that error is out of scope and I don't want to get distracted!
    Abraham Brookes
    @AbrahamBrookes
    image.png
    Abraham Brookes
    @AbrahamBrookes
    hey with this section: https://outsidein.dev/vue/6-writing-data.html#validation-error it seems like you're going back on what you've said earlier wrt leaving the text content itself up to the implementation
    image.png
    seems like that should be a toExist() instead?
    also what's with that trailing comma? seems like that should throw a syntax error
    and that v-alert component is still chucking wobblies - here's the full error stack I've just got
    Abraham Brookes
    @AbrahamBrookes
     FAIL  tests/unit/components/CreateRestaurant.spec.js
      ● Console
    
        console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
          [Vue warn]: Error in render: "TypeError: Cannot read property 'component' of undefined"
    
          found in
    
          ---> <VIcon>
                 <VAlert>
                   <Anonymous>
                     <Root>
        console.error node_modules/vue/dist/vue.runtime.common.dev.js:1884
          TypeError: Cannot read property 'component' of undefined
              at remapInternalIcon (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vuetify\dist\webpack:\Vuetify\src\util\helpers.ts:225:39)
              at VueComponent.getIcon (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vuetify\dist\webpack:\Vuetify\src\components\VIcon\VIcon.ts:72:31)
              at Proxy.render (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vuetify\dist\webpack:\Vuetify\src\components\VIcon\VIcon.ts:217:23)
              at VueComponent.Vue._render (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:3538:22)
              at VueComponent.updateComponent (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4054:21)
              at Watcher.get (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4465:25)
              at new Watcher (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4454:12)
              at mountComponent (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4061:3)
              at VueComponent.Object.<anonymous>.Vue.$mount (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:8392:10)
              at init (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:3112:13)
              at createComponent (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:5958:9)
              at createElm (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:5905:9)
              at createChildren (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:6033:9)
              at createElm (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:5934:9)
              at createChildren (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:6033:9)
              at createElm (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:5934:9)
              at VueComponent.patch [as __patch__] (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:6455:7)
              at VueComponent.Vue._update (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:3933:19)
              at VueComponent.updateComponent (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4054:10)
              at Watcher.get (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4465:25)
              at new Watcher (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4454:12)
              at mountComponent (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:4061:3)
              at VueComponent.Object.<anonymous>.Vue.$mount (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:8392:10)
              at init (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:3112:13)
              at createComponent (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node_modules\vue\dist\vue.runtime.common.dev.js:5958:9)
              at createElm (C:\Users\kjabd\Projects\outsidein.dev\opinion-ate\node
    oh I've been truncated
    Abraham Brookes
    @AbrahamBrookes
    is it just me or are you clicking this button twice?
    image.png
    hah nvm I kept reading
    might be good to explain after that block exactly why you clicked the button twice (although I figured out it was because the mock promise methods queue the resolve/rejects as opposed to called them in order)
    Abraham Brookes
    @AbrahamBrookes
    image.png
    is there a way to do this without adding another dependency? Seems like something jest would handle oob
    Abraham Brookes
    @AbrahamBrookes
    would you instead remove the beforeEach call and instead run the two tests one after the other, returning the promise from the it block? I guess that would go against "test one thing at a time"
    Abraham Brookes
    @AbrahamBrookes
    I finished the vue exercise! Thanks so much for your hard work putting this guide together I never would have wrapped my head around TDD without it - now I'm super excited about TDDing all the things!
    Tom
    @tom751
    I am getting this error when pressing "Create API key" on https://outside-in-dev-api.herokuapp.com/ error: no pg_hba.conf entry for host "54.92.193.117", user "cfpzjueszqwoid", database "dcqn7u1s2958ca", SSL off
    Safei Ashraf
    @Safei-Ashraf
    Hello, I had an issue with setting up CI during the course, the issue was addressed on the cypress repo, and they advised updating the github actions version, I resolved the issue on my end already and made a tiny PR to resolve it in the main repo as well, including a screenshot of the error and issue link on cypress repo. might need to update the course content with it as well : ) Thanks for the course man! am 100% enjoying it 😎
    PR CodingItWrong/opinion-ate-react#12
    Safei Ashraf
    @Safei-Ashraf
    image.png
    anyone got the same error when trying to generate an API key from the heroku link?
    Daniel Koch
    @dkprog
    I'm getting Error: self signed certificate
    Josh Justice
    @CodingItWrong
    @dkprog sorry about that; I'm in the progress of fixing the previously-reported api key errors. Hopefully will have the fix up within an hour. I'll post updates here
    Josh Justice
    @CodingItWrong
    @dkprog @Safei-Ashraf @tom751 Sorry for the API errors; I think they should be fixed now. I had to replace the backend with a different technology. I tried testing directly to it and it all seems to be working as before. In the next day or two I'll test it out against the actual React/Vue codebases, but if you run into any errors, please let me know here.
    I also want to apologize to everyone for not responding here. I messed up my notification settings so I wasn't hearing about messages. I should get them correctly now.
    Daniel Koch
    @dkprog
    @CodingItWrong Thank you very much!
    Josh Justice
    @CodingItWrong
    @Safei-Ashraf github actions version now updated on the site; thanks again for letting me know
    elov
    @elov:matrix.org
    [m]
    Hi! I'm having an issue with the react TDD, I receive a CORS error when axios makes the request from my localhost:3000, I've tried adding allow origin header and still the same, how can I Solve this? great explanaition of TDD!!
    Josh Justice
    @CodingItWrong
    Hi, sorry about that. I change the API recently. I should be able to look at getting that corrected tonight.
    Josh Justice
    @CodingItWrong
    @elov:matrix.org OK, I was able to reproduce the error. I got a fix in and it is working for me now. Please retry and if it still gives you issues, let me know
    3 replies
    Chris Scott
    @manach
    @CodingItWrong thanks for an amazing tutorial Josh. I spent three days and 15+ hours looking for a good frontend TDD tutorial, including paid and free resources, and finally found yours. It's the best of its kind and I can't believe you're not a full-time technical writer. Incredible work. Thank you!
    CrispyCB
    @CrispyCB_gitlab
    @CodingItWrong Echoing the praise + thanks. Really well done. Are there any plans to upgrade to Cypress 7?
    Tim Fleming
    @tflem
    @CodingItWrong Echoing praise as well. Enjoying it so far!
    Josh Justice
    @CodingItWrong
    Thanks folks, I'm really glad it's helpful! @manach I actually work at Big Nerd Ranch, who publishes books, and although I'm not an author there, I've gotten a lot of good editing on my blog posts that I guess has paid off :-)
    @CrispyCB_gitlab That's a great idea; I think I'll prioritize updating the React exercise to Cypress 7. For Vue, I'll check and see if Vue CLI uses Cypress 7 yet.
    Thanks for the suggestion! That'll help a lot of folks.
    Josh Justice
    @CodingItWrong
    Update on this: I've decided to stick with the older cy.route() API although it's deprecated in Cypress 7. I made the same decision on a production project. Rationale added to the web site. If y'all know of any other Cypress 7 differences that would affect the tutorial, feel free to let me know!
    alexandercyr
    @alexandercyr
    Wondering if there's something I'm missing...I made it to end of 'Unit Testing the Store' and tests aren't passing. Redux tests are passing fine, but unit tests are failing now for RestaurantList component.
    Error: Uncaught [Error: Could not find "store" in the context of "Connect(RestaurantsList)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(RestaurantsList) in connect options.]
    App.js has the Provider with store, so I'm not sure where the issue is. Wondering if this is a common issue or not
    Josh Justice
    @CodingItWrong
    @alexandercyr make sure you did a named import import {RestaurantList} in the test file, rather than the default import import RestaurantList
    alexandercyr
    @alexandercyr
    @CodingItWrong that did the trick! 🙌appreciate the help
    Josh Justice
    @CodingItWrong
    Great! I'll see if I can add a clear warning at that spot. What was going on is, the named export is the non-Redux-connected component, which the test expects. The default export is the Redux-connected component. For that one to work in the test, Redux setup would be needed in the test itself: that was what the error message you were getting was. Redux setup in App.JS doesn't carry over into the tests.
    Andres Manz
    @andresmanz
    Hey, I can't access the guide anymore (NET::ERR_CERT_DATE_INVALID). Very nice guide so far, would love to read on.
    Josh Justice
    @CodingItWrong
    @andresmanz Sorry about that. I just tried and saw the error too. I made a change and it appears to be fixed for me now; please give it a try and let me know whether or not you're still getting the error.
    Andres Manz
    @andresmanz
    That was quick, thank you very much!