🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

wait-umi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-umi

等待 umi 服务启动

beta
latest
npmnpm
Version
0.0.1-beta.2
Version published
Maintainers
1
Created
Source

wait-umi

等待 umi 服务启动

可用于 umijs 服务启动判断,通常在需要等待站点启动后运行 e2e 测试。

usage

wait umi <NPM script name that starts server> <url or port>

{
  "scripts": {
    "start": "umi dev",
    "test:e2e": "cypress run",
    "test": "wait-umi :8001 && test:e2e"
  },
  "devDependencies": {
    "wait-umi": "latest"
  }
}

同样的,也适用于 dumi 服务。

{
  "scripts": {
-    "start": "umi dev",
+    "start": "dumi dev",
    "test:e2e": "cypress run",
    "test": "wait-umi :8000 && test:e2e"

参考实现

  • start-server-and-test

Keywords

ci

FAQs

Package last updated on 29 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts