如果从包脚本运行,剧作家找不到测试

问题描述 投票:0回答:0

如果我运行这个

//终端

> npx playwright test --grep '@slow' --workers=1

一切都好

但是如果我跑

//包。 JSON

"scripts": {
  "test": "npx playwright test --grep '@slow' --workers=1"

//终端

npm run test

我得到 - 错误:未找到测试.

npm playwright npm-scripts
© www.soinside.com 2019 - 2024. All rights reserved.