πŸ€– 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
​​​​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
​​Editors may have problem with auto importing that complicated relative paths ( at least VSCode does ). Importing manually from various modules in your project will start to feel very cumbersome ( trust me, I experienced that with my team at work… )

⏱ 6 minutes

#TypeScript #Webpack #Jest
​​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