指定的 glob 模式不匹配任何文件或默认测试目录为空。 - 测试咖啡馆

The specified glob pattern does not match any file or the default test directories are empty. - testcafe

我已经开始学习 testcafe,因为我们的组织希望投入时间进行研发,以获取用于 angular 自动化的新端到端工具。

我正在尝试创建一个初始小测试并遇到以下错误。

我已经使用命令在本地安装了testcafe

npm install --save-dev testcafe

并创建了一个名为 first-test.spec.ts

的规范文件
import { Selector } from "testcafe";

fixture`Getting Started`.page`http://devexpress.github.io/testcafe/example`;

test("My First Test", async t => {});

当使用下面的命令运行测试时

npx testcafe chrome tests/

我收到以下错误

感谢任何帮助。

创建测试文件夹并将您的规范文件放在测试文件夹中,然后尝试执行相同的命令

npx testcafe chrome tests/