NPM E2E测试,在管道中的github动作中不起作用,但在本地工作正常:错误 - 使用退出代码1完成的过程
所以我的 ci: lint 测试、单元测试、sast 和打包工作正常。但 e2e 测试在 GitHub actoins 上无法正常工作。我单独运行它来查看它是否有效,但它不断出现此错误。
- 进程已完成,退出代码为 1。
我已运行这些命令以便在终端上运行。让 docker 启动容器并启动服务器等等。这样 e2e 就可以工作了。
- npx playwright install
- docker-compose up -d
- npm run start
- npm run test-e2e
So i've got the ci: lint test, unit test, sast and packaging to work fine. But the e2e testing doesn't work properly on GitHub actoins. I am running it solely by itself to see if it works, but it keeps coming up with this error.
- Process completed with exit code 1.
I've run these commands in order to run on terminal. Get docker to get the container up and get the server started etc etc. So that the e2e can work.
- npx playwright install
- docker-compose up -d
- npm run start
- npm run test-e2e
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论