🤖 Coding News ⚡️
27.2K subscribers
2 photos
1 video
807 links
High quality articles, videos, and tutorials about programming 💻

HTML, CSS, Sass, JavaScript, TypeScript, React, Angular, Electron, Node, Vue, GraphQL and other topics 💥

@CodingChat talk with other engineers
@CodingNewsFeedbackBot advertisement
Download Telegram
http://bit.ly/2AOVZYn

How to choose the right test types for Node and JavaScript, code them correctly, measure their effectiveness and host them in a CI/CD pipeline in the right way 💪🏼

#testing #jest #mocha #javascript #node #ci #cd
​​We are gonna take a dive into test driven development first, then we are gonna dive into the tool we are gonna use which is jest.

#testing #tdd #jest
​​Modern JavaScript frameworks present an easier and more organized way to create web applications. However, they also add complexity that sometimes breaks things in a subtle yet impactful way.

To combat this and ensure we don’t introduce more bugs than we fix, we can turn to automated frontend testing. The best form of automated tests? Running through the interface as a real user would, clicking on buttons and filling out forms.

#testing #javascript
​​Write tests. Not too many. Mostly integration.

​​Guillermo Rauch tweeted this a while back. Let’s take a quick dive into what it means.

#testing
​​​​Yes, the ever so dreaded unit test that many new developers turn their heads to because of it’s seemingly complex nature. But today i’m here to hopefully take some of that pressure off of your shoulders and hopefully walk you through some examples that you can begin to implement in the code base your working on right now!

#javascript #testing #jest #sinon
​​I recently decided to improve unit test performance on a newly joined project. It felt like it takes too long to test the whole suite (32 tests only) as well as test a separate file in isolation with watch mode. The direct consequences of that are that developers are not enjoying the process and trying to avoid touching unit tests. Product quality suffers in the long run.

3 min read

#Testing #Jest
​​Serverless is more than a cloud computing execution model. It changes the way we plan, build, and deploy apps. But it also changes the way we test our apps.

11 min read

#Serverless #Testing
​​Code coverage is a metric used to measure the amount of code that is executed during unit testing. It is an important tool in ensuring that all parts of a program are thoroughly tested and that any bugs or issues are identified early on.

⏱️ 4 minutes read

#Testing
​​Authentication is a process of recognizing user identity. When a user enters their credentials (usually login & password) and, depending on an identification strategy, a user is being determined by a system. Then all necessary user permissions are verified, and they might have access to particular resources (aka authorization).

⏱️ 4 minutes read

#Testing
​​Our team is a couple of months into developing a new application, and our suite of unit 240 tests takes 46 seconds to run. That duration is not excessive yet, but it’s increasing in proportion to the number of tests. In a couple of months, it’ll take a couple of minutes to run our tests.

⏱️ 12 minutes read

#Testing #Jest