Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wxh16144/wait-umi
等待 umi 服务启动
https://github.com/wxh16144/wait-umi
Last synced: 23 days ago
JSON representation
等待 umi 服务启动
- Host: GitHub
- URL: https://github.com/wxh16144/wait-umi
- Owner: Wxh16144
- Created: 2024-04-14T09:34:01.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-04-29T09:00:23.000Z (7 months ago)
- Last Synced: 2024-10-21T22:28:03.101Z (26 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# wait-umi
> 等待 umi 服务启动
可用于 umijs 服务启动判断,通常在需要等待站点启动后运行 e2e 测试。
## usage
wait umi ` `
```json
{
"scripts": {
"start": "umi dev",
"test:e2e": "cypress run",
"test": "wait-umi :8001 && test:e2e"
},
"devDependencies": {
"wait-umi": "latest"
}
}
```同样的,也适用于 dumi 服务。
```diff
{
"scripts": {
- "start": "umi dev",
+ "start": "dumi dev",
"test:e2e": "cypress run",
"test": "wait-umi :8000 && test:e2e"```
## 参考实现
- [start-server-and-test](https://github.com/bahmutov/start-server-and-test)