@kentcdodds I want to replace all the data with fake data (maybe with fakerjs), and then I can store it savely in my version control. This would be ideal.
@kentcdodds Yeah thats true, but I have to do it for every request for all of my components. I want something like MSW where I first record all or a lot of possible requests done by my app and then use the recorded requests and data for my tests. And then...
@kentcdodds Thank you! But that means you have to know the datastructure and create the data by yourself. Exactly this time consuming task I want to avoid.
@kentcdodds Do you have in your project test servers with test data without real customer data or do you filter the data at the frontend by hand / replace customer data with fake data?
@kentcdodds I like these kind of tools and the hustle free mocking but: I am currently working on a big React project in the enterprise field. The company is in europe, so GDPR is a thing. Our dev server serves data from a database with real customer data in it. My question now:
@maxlynch We at @pcode_at also struggled with this. There is a CSS pattern / best practice where you prefix your components with "Layout" when you want to add things like padding /margin.
Source: https://t.co/uXHAndH19I
Let me know if that helped you! πͺ
@thekitze Why not both? You don't need a powerful laptop when there are existing such things like remote software where you can connect to your powerful PC at home. You just need a good and reliable internet connection π€·π»ββ
@kentcdodds@TestingLib Yeah! π― Do you or anyone know if they now support ts-jest for TypeScript support in your tests? In the past when I used CRA you had to eject to install ts-jest and to get it working. Or am I totally wrong?
Most common mistake software developers make: putting stuff in the wrong place. Coupling responsibilities and concepts that should be kept separate.
For me, this is 95% of software development. Just figuring out *where* things belong.
"...the senior is thinking about the people who have to work with the code, while the junior is just thinking about making it work for the computer."
Focus on design patterns, writing code that humans can understand and help less experienced developers.
https://t.co/NKesgpvcLD
Thank you @dceddia for this great article. If you want to learn more about immutability, the spread operator, the 'const' keyword and state update patterns this article will help you a lot. π―
https://t.co/BbBF0gfjAx
@kentcdodds If its the case that someThing() is a factory function for a object and it does not return a reference to this object I do not understand why foo should not be immutable?