awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

JavaScript 快照测试框架

排名更新于 2026年6月30日

For 支持快照测试的 JavaScript 单元测试框架, the strongest matches are jestjs/jest (Jest is a full-featured JavaScript testing framework that natively), facebook/jest (Jest is a full-featured JavaScript unit testing framework that) and vitest-dev/vitest (Vitest is a high-performance JavaScript and TypeScript testing framework). avajs/ava and sindresorhus/ava round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

这些 JavaScript 测试库提供快照功能,可自动验证 UI 组件和数据结构。

JavaScript 快照测试框架

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • jestjs/jestjestjs 的头像

    jestjs/jest

    45,448在 GitHub 上查看↗

    Jest is a JavaScript testing framework designed for writing and running automated test suites to verify the correctness of JavaScript and TypeScript code. It functions as a comprehensive toolset that integrates a test runner, a mocking and spying library, a snapshot testing tool, and a code coverage tool. The framework distinguishes itself through snapshot testing, which records the serialized state of data structures to detect regressions in future executions. It also includes a mocking and spying library for simulating external dependencies and tracking function calls to isolate code during

    Jest is a full-featured JavaScript testing framework that natively includes snapshot testing, a test runner, built-in assertions, mocking, code coverage, and a watch mode, making it a comprehensive solution for this search.

    TypeScriptCode Coverage ToolsReactive Watch ModesSnapshot Testing
    在 GitHub 上查看↗45,448
  • facebook/jestfacebook 的头像

    facebook/jest

    45,448在 GitHub 上查看↗

    Jest is a JavaScript testing framework that integrates a test runner, an assertion library, and a snapshot testing tool. Its primary purpose is to provide a comprehensive environment for writing and running automated JavaScript tests to verify software correctness. The framework is distinguished by its snapshot testing capabilities, which capture the state of large objects or rendered components to detect regressions over time. It also features a reactive watch mode that monitors file changes and automatically executes only the tests related to modified code. The project covers a broad range

    Jest is a full-featured JavaScript unit testing framework that natively includes snapshot testing, a test runner, assertion library, mocking, code coverage, and watch mode, making it a perfect match for this search.

    TypeScriptAssertion LibrariesReactive Watch ModesSnapshot Testing
    在 GitHub 上查看↗45,448
  • vitest-dev/vitestvitest-dev 的头像

    vitest-dev/vitest

    15,970在 GitHub 上查看↗

    Vitest is a high-performance testing framework designed for JavaScript and TypeScript applications. It provides an integrated environment that supports unit, integration, and browser-based testing, allowing developers to execute test suites natively without requiring separate build steps or complex configuration. The project distinguishes itself through a highly optimized execution model that leverages worker-thread isolation and on-demand module transformation to provide rapid feedback. It includes a comprehensive suite of mocking and spying utilities that allow for the interception of depen

    Vitest is a high-performance JavaScript and TypeScript testing framework with a built-in test runner, assertion library, mocking utilities, code coverage, and watch mode, and it natively supports snapshot testing, fully matching the requirements.

    TypeScriptAssertion LibrariesCode Coverage ToolsSnapshot Testing
    在 GitHub 上查看↗15,970
  • avajs/avaavajs 的头像

    avajs/ava

    20,849在 GitHub 上查看↗

    Ava is a test runner for JavaScript and TypeScript designed to execute test suites with a focus on concurrency and isolation. It serves as a concurrent test executor that runs test files in parallel across multiple processes to reduce total runtime and prevent state leakage between suites. The project features a built-in snapshot testing framework that saves large data structures to disk and compares subsequent executions to detect regressions via diffs. It is also compatible with the Test Anything Protocol, allowing it to export results for use with external reporting tools. Its capability

    AVA is a JavaScript test runner with built-in snapshot testing, directly matching the request for a unit testing framework with that capability, though it may require external tools for features like mocking and code coverage.

    JavaScriptAssertion LibrariesCode Coverage AnalysisSnapshot Testing
    在 GitHub 上查看↗20,849
  • sindresorhus/avasindresorhus 的头像

    sindresorhus/ava

    20,849在 GitHub 上查看↗

    Ava is a concurrent test runner for Node.js that executes test files in parallel using worker thread isolation to prevent global state leakage. It functions as a TAP-compliant tool, exporting results via the Test Anything Protocol for integration with external reporting systems. The framework distinguishes itself through a focus on execution speed and clarity, utilizing worker threads to run multiple test files simultaneously across CPU cores. It includes stack trace simplification to filter out internal framework noise and a value comparison utility that provides syntax-highlighted diffs for

    Ava is a concurrent test runner for Node.js, which fits the JavaScript unit testing framework category, but it does not include built-in snapshot testing, so it lacks that specific requirement while still being the right kind of tool.

    JavaScriptTest Execution RunnersWatch Mode Runners
    在 GitHub 上查看↗20,849
  • jasmine/jasminejasmine 的头像

    jasmine/jasmine

    15,824在 GitHub 上查看↗

    Jasmine is a JavaScript testing framework and test runner designed for behavior-driven development. It provides a comprehensive toolset for writing and executing descriptive test suites that verify code behavior in both web browsers and Node.js environments. The framework is distinguished by its integrated mocking library, which allows for dependency isolation through spies and stubs, as well as the ability to simulate time and timing functions to test asynchronous logic synchronously. It also includes a mechanism to enforce test uniqueness, preventing duplicate names for tests and suites. I

    Jasmine is a JavaScript testing framework and test runner with integrated mocking and assertion support, but it does not include built-in snapshot testing, so while it fits the category of testing framework it lacks that specific capability.

    JavaScriptTest Execution Runners
    在 GitHub 上查看↗15,824

Related searches

  • 用于 UI 组件的视觉回归测试工具
  • 用于 AI 生成单元测试的工具
  • a testing framework for Dart applications
  • Go 语言测试断言与 Mock 库
  • a testing framework for Swift applications
  • a unit testing framework for C++
  • a unit testing framework for C#
  • a testing framework for Kotlin projects