@bryntum/siesta

中文文档
6.0.0-beta-1发布于 2022/03/23MITES Module近 30 天下载 2736

Stress-free JavaScript/TypeScript testing and benchmarking tool

原始使用文档

link to npm package

Siesta is a stress-free, ubiquitous & open-source JavaScript/TypeScript testing tool developed by Bryntum since 2009.

Version 6 is a complete rewrite, using a modern technology stack and a decade of test driven development experience.

Main features:

  • One test tool to run all types of tests. Siesta can run tests in all modern browsers, Node.js and Deno. Moreover, in browsers, both in-process and out-of-process execution models are supported, so that you can choose the most appropriate one
  • Supports parallel execution
  • Supports native simulation of user actions, like clicking, typing etc.
  • Provides accurate and well-formatted deep diff for equality assertion

Siesta powers the test suites of all Bryntum products and thousands of our clients.

Supported environments

Siesta can run the test in browsers (both in-process and out-of-process), Node.js and Deno.

Siesta supports modern, ever-green browsers only - Chrome, Firefox, Safari and Edge Chromium. IE, legacy Edge and quirks mode are not supported.

Siesta supports all maintained LTS releases of Node.js.

Siesta supports the latest release of Deno.

Installation

Node.js environment:

npm install @bryntum/siesta --save-dev

Deno environment:

deno install -n siesta -A -q --unstable --no-check https://cdn.jsdelivr.net/npm/@bryntum/siesta@latest/bin/siesta_deno.js

Build statuses

Build Node.js Deno Chrome Firefox Safari
Siesta isomorphic Node.js build status Deno build status Chrome build status Firefox build status Safari build status
Siesta browser Chrome build status Firefox build status Safari build status
Siesta Node.js 12 Node.js 12 build status
Siesta Node.js 14 Node.js 14 build status
Siesta Node.js 16 Node.js 16 build status
Siesta Deno Deno build status

Documentation

Please start reading from one the following guides, corresponding to the environment, in which you'd like to run the tests:

Getting started with Siesta in Node.js environment

Getting started with Siesta in Deno environment

Getting started with Siesta in browser environment

Getting started with Siesta in Sencha framework environment

Resources

Website: https://siesta.works

Github repo: https://github.com/bryntum/siesta

Connect

We welcome all feedback, so please let us know how we can improve your testing experience and reduce friction in your TDD cycle.

Please report any bugs found and request features in the issues tracker

Ask questions in the forum

Chat live at Discord

Follow the development blog

Attribution

This software contains icons from the following icon packs (licensed under Creative Common 2.5/3.0 Attribution licenses)

COPYRIGHT AND LICENSE

MIT License

Copyright (c) 2009-2021 Bryntum, Nickolay Platonov

版本与发布记录

@bryntum/siesta 共发布 7 个版本,首次发布于 2021/06/07;过去 12 个月发布了 0 个版本。

版本发布日期距今
6.0.0-beta-1latest2022/03/234 年前
6.0.0-alpha-52021/12/214 年前
6.0.0-alpha-42021/11/015 年前
6.0.0-alpha-32021/07/015 年前
6.0.0-alpha-22021/06/085 年前
6.0.0-alpha-12021/06/075 年前

关于 @bryntum/siesta 的常见问题

@bryntum/siesta 是什么?

Stress-free JavaScript/TypeScript testing and benchmarking tool

如何安装 @bryntum/siesta?

在项目目录运行 npm install @bryntum/siesta,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 siesta,可以用 npx siesta 直接运行。

@bryntum/siesta 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bryntum__siesta 是否存在。

@bryntum/siesta 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@bryntum/siesta 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=12.21.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bryntum/siesta 可以商用吗?

@bryntum/siesta 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bryntum/siesta 的下载量有多少?

根据 npm 官方下载统计,@bryntum/siesta 在 2026/10/09 – 2026/11/07 这 30 天内被下载 2,736 次,日均约 91 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bryntum/siesta 还在维护吗?

最新版本 6.0.0-beta-1 发布于 2022/03/23(4 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/06/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。