https://github.com/ecomfe/san-test-utils
San Test Utils 是 San.js 官方的单元测试实用工具库
https://github.com/ecomfe/san-test-utils
Last synced: 11 months ago
JSON representation
San Test Utils 是 San.js 官方的单元测试实用工具库
- Host: GitHub
- URL: https://github.com/ecomfe/san-test-utils
- Owner: ecomfe
- License: other
- Created: 2020-05-07T10:29:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:36:55.000Z (over 3 years ago)
- Last Synced: 2025-07-31T03:55:31.202Z (11 months ago)
- Language: TypeScript
- Homepage: https://ecomfe.github.io/san-test-utils/
- Size: 4.58 MB
- Stars: 5
- Watchers: 13
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# san-test-utils
## 介绍
San Test Utils 是为 [San.js](https://baidu.github.io/san/) 打造的测试库,它提供了为San组件进行单元测试的能力。该工具包参考了 [vue-test-utils](https://github.com/vuejs/vue-test-utils)。
## 安装
```
npm install san-test-utils
```
## 测试
```
npm test
```
## 文档
[文档](https://ecomfe.github.io/san-test-utils/)
## 与各个测试框架配合使用的示例
- [Jest示例](https://github.com/ecomfe/san-test-utils/tree/master/docs/demo/jest)
- [Mocha示例](https://github.com/ecomfe/san-test-utils/tree/master/docs/demo/mocha)
- [Karma示例](https://github.com/ecomfe/san-test-utils/tree/master/docs/demo/karma)