首页 > 解决方案 > 进程退出 1 后 Github Action 成功 - 排毒

问题描述

我正在尝试使用 Detox for React Native 为 android 运行 e2e 测试。测试在本地运行(和失败)很好,但 Github Action 被标记为“成功”,即使测试失败并以 1 退出。

这是最终输出:

detox[93484] ERROR: [cli.js] Error: Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Done in 366.59s.

你能为我指出正确的方向吗?

标签: react-nativegithub-actionse2e-testingdetox

解决方案


推荐阅读