npm 中文文档 npm 中文文档
指南
npmjs.com (opens new window)
指南
npmjs.com (opens new window)
  • 快速入门

    • npm 是什么?
    • npm 安装和更新
    • npm 防止权限错误
    • npm package.json 文件
    • npm 安装包
    • npm 更新包
    • npm 卸载包
    • npm 创建 Node.js 模块
    • npm 发布和更新包
    • npm 使用语义化版本
    • npm 使用 Dist-tags 标记包
    • npm 包和模块的了解
  • 命令行
  • 配置 npm

A JavaScript Testing Framework


Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

Upgrading from Jasmine 3.x? Check out the upgrade guide.

Contributing


Please read the contributors' guide.

Installation


There are several different ways to install Jasmine, depending on your environment and how you'd like to use it. See the Getting Started page for details.

Usage


See the documentation site, particularly the Your First Suite tutorial for information on writing specs, and the FAQ.

Supported environments


Jasmine tests itself across popular browsers (Safari, Chrome, Firefox, and Microsoft Edge) as well as Node.

Environment Supported versions
:--- :---
Node 12.17+, 14, 16, 18
Safari 14-16
Chrome Evergreen
Firefox Evergreen, 91, 102
Edge Evergreen

For evergreen browsers, each version of Jasmine is tested against the version of the browser that is available to us at the time of release. Other browsers, as well as older & newer versions of some supported browsers, are likely to work. However, Jasmine isn't tested against them and they aren't actively supported.

To find out what environments work with a particular Jasmine release, see the release notes.

Maintainers


Gwendolyn Van Hove
Steve Gravrock

Maintainers Emeritus


Davis W. Frank
Rajan Agaskar
Greg Cobb
Chris Amavisca
Christian Williams
Sheel Choksi

Copyright (c) 2008-2022 Jasmine Maintainers. This software is licensed under the MIT License.
Last Updated: 2023-05-15 10:22:02