awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vuejs avatar

vuejs/vue-test-utils

0
View on GitHub↗
3,544 stars·657 forks·JavaScript·MIT·4 viewsvue-test-utils.vuejs.org↗

Vue Test Utils

Vue Test Utils is a testing library designed for the Vue framework that provides a suite of tools for mounting, interacting with, and asserting the state and output of user interface components. It functions as a JavaScript unit testing tool, enabling developers to verify component logic, rendered structure, and dynamic behavior within an automated test environment.

The library distinguishes itself through its ability to isolate components during testing, allowing for shallow rendering that replaces child components with stubs to prevent external dependencies from influencing results. It provides a unified wrapper-based interface for querying and interacting with elements, regardless of whether they are rendered in a browser or in memory, and supports the simulation of user interactions like clicks and form inputs to confirm that event handlers function as expected.

Beyond basic unit testing, the framework covers a broad range of quality assurance tasks, including component integration testing with global state and routing systems. It also provides specialized utilities for server-side rendering, allowing developers to validate that components generate correct markup and handle hydration properly. The library is available as a package that can be installed to configure test environments with custom mocks, plugins, and dependency injections.

Features

  • Component Testing Frameworks - Provides a comprehensive suite of tools for isolating UI components to validate their behavior, structure, and rendering output.
  • User Interaction Simulators - Programmatically triggers user input events like clicks and form submissions to verify event handlers.
  • Test Environment Mocks - Customizes the mounting process by injecting mocks, stubs, or global plugins to simulate specific application conditions during unit tests.
  • Component Mounting Utilities - Simulates runtime environments to mount components and verify their interaction with props and event handlers.
  • Frontend Automated Testing Utilities - Simulates realistic user interactions in browser environments to verify component behavior and event handling.
  • Unit Testing Frameworks - Functions as a library for verifying component logic, rendering output, and user interactions during automated test execution.
  • Shallow Renderers - Renders only the top-level component to isolate the unit under test by replacing child components with stubs.
  • Testing Utilities - Provides utilities for verifying the logic and rendered output of individual components in isolation.
  • Isolated Component Renderers - Creates isolated instances of components using full or shallow rendering to verify behavior without external dependencies.
  • Component State Manipulators - Modifies props, data, or internal methods of a mounted component to observe interface reactions during testing.
  • Component Testing - Provides strategies for isolating and testing individual UI components, including integration with global state and routing.
  • Dependency Mocking - Provides mechanisms for replacing module dependencies or network calls with controlled substitutes during testing.
  • State Assertions - Verifies that component properties, attributes, and text content match expected values during automated tests.
  • UI Event Simulators - Triggers synthetic user interface events to validate event handler logic and component responses.
  • Output Assertions - Inspects rendered output to confirm that interface updates match expected outcomes during automated test execution.
  • DOM Node Wrappers - Wraps DOM nodes to provide a unified interface for querying and interacting with elements regardless of rendering environment.
  • Server-Side HTML Generation - Generates initial HTML markup on the server to validate output and ensure correct rendering behavior.
  • Server-Side Rendering - Provides techniques and utilities for rendering components on the server to validate markup generation and hydration.
  • Verification Utilities - Provides specialized utilities to validate that components generate correct markup and handle hydration properly during server-side rendering.
  • Vue Component Libraries - Provides a utility suite for mounting, interacting with, and asserting the state of components within a test environment.

Star history

Star history chart for vuejs/vue-test-utilsStar history chart for vuejs/vue-test-utils

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Curated searches featuring Vue Test Utils

Hand-picked collections where Vue Test Utils appears.
  • UI component locators
  • Test isolation tools

Open-source alternatives to Vue Test Utils

Similar open-source projects, ranked by how many features they share with Vue Test Utils.
  • airbnb/enzymeairbnb avatar

    airbnb/enzyme

    19,831View on GitHub↗

    Enzyme is a JavaScript component testing utility and test suite used to verify the behavior and rendered output of user interface components. It provides tools for simulating user interactions, updating component properties, and asserting that the resulting interface state matches expected outcomes. The project utilizes a pluggable adapter system to connect different user interface frameworks, allowing for consistent testing patterns across various libraries and versions. This architecture enables the verification of components across multiple UI library versions and different test runners.

    JavaScript
    View on GitHub↗19,831
  • cypress-io/cypresscypress-io avatar

    cypress-io/cypress

    50,113View on GitHub↗

    Cypress is a browser-based testing framework designed for writing and running automated tests directly inside the browser. It serves as an end-to-end testing framework, a frontend component testing tool, and a web application test runner. The project also functions as a headless browser automation tool and a network traffic interceptor. The system differentiates itself by executing test code within the same browser process as the application, allowing for direct access to the DOM. It includes a network traffic interception system to stub and manipulate browser requests, as well as a graphical

    TypeScriptangular-testing-librarycomponent-testingcypress
    View on GitHub↗50,113
  • enzymejs/enzymeE

    enzymejs/enzyme

    19,831View on GitHub↗

    Enzyme is a testing utility for React components designed to verify their output and behavior in a test environment. It serves as a test harness for UI components, providing tools to render visual elements, manage state transitions, and simulate synthetic events. The library distinguishes itself through multiple rendering modes, including a shallow rendering engine for isolated unit testing and full DOM rendering for testing deep integration. It employs an adapter-based integration system to maintain compatibility across different versions of the underlying framework. The toolkit covers a br

    JavaScript
    View on GitHub↗19,831
  • codepath/android_guidescodepath avatar

    codepath/android_guides

    28,339View on GitHub↗

    This project provides a collection of instructional guides and tutorials for Android app development, native mobile application creation, and computer science education. It focuses on building native applications through step-by-step implementation, covering the development of user interfaces and the integration of system hardware and permissions. The material extends into broader technical domains, including the study of fundamental data structures and algorithms for technical interview preparation. It also covers cybersecurity fundamentals, such as identifying web vulnerabilities and implem

    androidcodepathdevelopment
    View on GitHub↗28,339
See all 30 alternatives to Vue Test Utils→

Frequently asked questions

What does vuejs/vue-test-utils do?

Vue Test Utils is a testing library designed for the Vue framework that provides a suite of tools for mounting, interacting with, and asserting the state and output of user interface components. It functions as a JavaScript unit testing tool, enabling developers to verify component logic, rendered structure, and dynamic behavior within an automated test environment.

What are the main features of vuejs/vue-test-utils?

The main features of vuejs/vue-test-utils are: Component Testing Frameworks, User Interaction Simulators, Test Environment Mocks, Component Mounting Utilities, Frontend Automated Testing Utilities, Unit Testing Frameworks, Shallow Renderers, Testing Utilities.

What are some open-source alternatives to vuejs/vue-test-utils?

Open-source alternatives to vuejs/vue-test-utils include: airbnb/enzyme — Enzyme is a JavaScript component testing utility and test suite used to verify the behavior and rendered output of… cypress-io/cypress — Cypress is a browser-based testing framework designed for writing and running automated tests directly inside the… enzymejs/enzyme — Enzyme is a testing utility for React components designed to verify their output and behavior in a test environment.… codepath/android_guides — This project provides a collection of instructional guides and tutorials for Android app development, native mobile… nasa/fprime — F Prime is a component-based framework designed for the development and deployment of embedded and spaceflight… sagalbot/vue-select — vue-select is a reusable UI component for Vue applications that serves as an accessible replacement for the standard…