Need advice about which tool to choose?Ask the StackShare community!

AVA

111
205
+ 1
32
Enzyme

984
349
+ 1
0
Add tool

AVA vs Enzyme: What are the differences?

What is AVA? A refined, futuristic test runner. Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file.

What is Enzyme? JavaScript Testing utilities for React, by Airbnb. Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.

AVA and Enzyme can be primarily classified as "Javascript Testing Framework" tools.

AVA and Enzyme are both open source tools. It seems that Enzyme with 17.5K GitHub stars and 1.93K forks on GitHub has more adoption than AVA with 16.5K GitHub stars and 1.08K GitHub forks.

According to the StackShare community, Enzyme has a broader approval, being mentioned in 52 company stacks & 32 developers stacks; compared to AVA, which is listed in 12 company stacks and 10 developer stacks.

Decisions about AVA and Enzyme

Postman will be used to do integration testing with the backend API we create. It offers a clean interface to create many requests, and you can even organize these requests into collections. It helps to test the backend API first to make sure it's working before using it in the front-end. Jest can also be used for testing and is already embedded into React. Not only does it offer unit testing support in javascript, it can also do snapshot testing for the front-end to make sure components are rendering correctly. Enzyme is complementary to Jest and offers more functions such as shallow rendering. UnitTest will be used for Python testing as it is simple, has a lot of functionality and already built in with python. Sentry will be used for keeping track of errors as it is also easily integratable with Heroku because they offer it as an add-on. LogDNA will be used for tracking logs which are not errors and is also a Heroku add-on. Its good to have a separate service to record logs, monitor, track and even fix errors in real-time so our application can run more smoothly.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of AVA
Pros of Enzyme
  • 12
    Simple and fast
  • 6
    Parallel test running
  • 5
    Open source
  • 3
    Promise support
  • 3
    Test code Instrumenting
  • 2
    Babel integration
  • 1
    ESM Ready
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    Cons of AVA
    Cons of Enzyme
    • 1
      No built-in support for DOM
    • 1
      No source files compilation
      Be the first to leave a con

      Sign up to add or upvote consMake informed product decisions

      What is AVA?

      Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file.

      What is Enzyme?

      Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use AVA?
      What companies use Enzyme?
      Manage your open source components, licenses, and vulnerabilities
      Learn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with AVA?
      What tools integrate with Enzyme?
        No integrations found
        What are some alternatives to AVA and Enzyme?
        Jest
        Jest provides you with multiple layers on top of Jasmine.
        EVA
        Equipping you with hundreds of symbols and dozens or styles configurations, it makes sure the design stays consistent across all of your applications and platforms.
        Mocha
        Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
        Git
        Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
        GitHub
        GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.
        See all alternatives