# @commercetools-frontend/cypress 中文文档

规范地址：https://npmcn.com/package/%40commercetools-frontend/cypress/

版本：27\.17\.1
npm 元数据更新时间：2026-11-10T16:03:20.656Z
中文译文更新时间：2026-11-10T16:06:27.921Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40commercetools-frontend/cypress
原文对照：https://npmcn.com/package/%40commercetools-frontend/cypress/?lang=original
项目主页：https://docs.commercetools.com/merchant-center-customizations/api-reference/commercetools-frontend-cypress
源码仓库：https://github.com/commercetools/merchant-center-application-kit

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：118 kB，30 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：未声明
- 运行依赖：9 个
- peer 依赖：cypress \>=8
- 首次发布：2021-01-19T10:18:09.023Z
- 最新版本发布：2026-11-10T16:03:19.205Z
- 近 30 天下载量：8395（2026-10-11 至 2026-11-09，npm 官方下载统计）
- 已发布版本数：1396（近 12 个月 204 个）

## 中文简介

自定义应用程序的 Cypress 命令和工具

## 安装

```sh
npm install @commercetools-frontend/cypress
```

也可以使用：`pnpm add @commercetools-frontend/cypress`、`yarn add @commercetools-frontend/cypress`、`bun add @commercetools-frontend/cypress`

## README

# @ commercialtools- frontend/ cypress (商业工具)

[![Latest release (latest dist-tag)](https://badgen.net/npm/v/@commercetools-frontend/cypress)](https://www.npmjs.com/package/@commercetools-frontend/cypress) [![Latest release (next dist-tag)](https://badgen.net/npm/v/@commercetools-frontend/cypress/next)](https://www.npmjs.com/package/@commercetools-frontend/cypress) [![Minified + GZipped size](https://badgen.net/bundlephobia/minzip/@commercetools-frontend/cypress)](https://bundlephobia.com/result?p=@commercetools-frontend/cypress) [![GitHub license](https://badgen.net/github/license/commercetools/merchant-center-application-kit)](https://github.com/commercetools/merchant-center-application-kit/blob/main/LICENSE)

看看这个 [文档](https://docs.commercetools.com/merchant-center-customizations/api-reference/commercetools-frontend-cypress) 更多信息.

## 常见问题

### @commercetools-frontend/cypress 是什么？

自定义应用程序的 Cypress 命令和工具

### 如何安装 @commercetools-frontend/cypress？

在项目目录运行 npm install @commercetools-frontend/cypress，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：cypress（\>=8）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @commercetools-frontend/cypress 支持 TypeScript 吗？

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

### @commercetools-frontend/cypress 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @commercetools-frontend/cypress 可以商用吗？

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

### @commercetools-frontend/cypress 的下载量有多少？

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

### @commercetools-frontend/cypress 还在维护吗？

最新版本 27\.17\.1 发布于 2026/11/11（今天）；至今共发布 1396 个版本，其中过去 12 个月发布了 204 个；首次发布于 2021/01/19。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

