mocha 中跳过的测试在报告中显示为待处理

Skipped tests in mocha shown pending in report

我正在使用 gulp-mocha 通过 mochawesome-screenshots 报告执行我的 mocha 测试

对于特定情况,我应该跳过我的测试。

但在报告和 cli 中,这些测试显示为未决未跳过

我需要记录我跳过的测试,以便跳过而不是挂起。

提前致谢。

在 mocha 中跳过的测试是 "Pending" by definition

Anything skipped will be marked as pending, and reported as such.