See Testim Copilot in action | Join us

Tag: javascript

When it comes to unit testing frameworks for JavaScript, Jest is certainly a serious contender for the #1 spot. Initially, Jest was created by Facebook specifically for testing React applications. It’s one of the most popular ways of testing React components. Since its introduction, the tool has gained a lot of popularity. This popularity has…

The tech industry is currently more competitive than ever. In order to stay competitive, software organizations had to evolve. They had to adopt tools and techniques that allow them to move fast while keeping quality high. In short, that’s what the DevOps movement is all about: bridging the lines between development and operations, leveraging automation…

Unit testing is important to verify the behavior of the smallest units of code in your application. It helps improve the quality of your code and reduces the amount of time and money you spend on bug fixing. Moreover, unit testing helps you find bugs early on in the development life cycle and increases your…

No code is perfect, and nobody writes the perfect code. That’s why I’m writing this post. If everyone wrote absolutely perfect code all the time, there wouldn’t be a need for this post. So how do we improve the quality of our code? One approach is to refactor the code. But what exactly is JavaScript…

Let’s talk about automated testing tools. Why are they valuable? Well, the tech world is incredibly competitive. To stay alive in such a fast-evolving landscape, companies worldwide must make use of automation, which includes having a sound automated testing strategy in place. And to design, implement, and maintain said strategy, you’ve got to have the…

There are many libraries available to write unit tests for your JavaScript code. One popular option is QUnit. Let’s look at how you can get started with QUnit. But let’s not stop there. Measuring code coverage of your tests is a useful metric to gain insights and improve your test suite. We’ll open the tutorial…

There are many types of automated testing out there: front-end testing, smoke testing, load testing, end-to-end (E2E) testing, and that’s to name only a few. If you want to design a sound testing strategy with the best possible ROI—and who doesn’t want that? It’s crucial to understand all of these types of testing, learning the…

The Testim blog has been publishing a lot of posts about JavaScript testing related concepts and tools. We’ve covered Jest testing, Cucumber.js, and load testing with Artillery, among many other topics. Today, we carry on with the trend by covering yet another JavaScript testing-related tool: Sinon JS. Sinon JS is a popular JavaScript library that…

Testim’s support for global variables and parameters is most excellent. However, when I create custom actions that either takes parameters or uses global variables, I ran into an interesting situation. I wanted to define my global variable in a custom step and set it to a default value if it was never set. Also, so…

Let’s get started with React Native unit testing! A React Native unit is the smallest testable part of a Reactive Native app. What is considered to be the smallest testable part is debatable, and what should be tested is a personal preference, depending on the project. You can perform React Native unit testing on an…