【发布时间】:2020-01-07 22:42:26
【问题描述】:
我知道他们的模式表明将所有赛普拉斯测试/集成放在 cypress/integration 路径中。但是,我想将测试放在src/components 路径中。
src
└── components
└── Component1Directory
├── Component1.js
└── tests
└── cypress_integration_for_component_1.js
└───Component2Directory
├── Component2.js
└── tests
└── cypress_integration_for_component_2.js
我已尝试更改配置,但通配符似乎不起作用。
{
"baseUrl": "http://localhost:4001",
"integrationFolder": "src/components/*/tests"
}
我还尝试使用通配符代替“测试”来删除测试子目录,但这也不起作用。
【问题讨论】: