AWS Amplify ci/cd 在测试阶段挂起

AWS Amplify ci/cd hangs at test stage

我将我的放大项目连接到 gitlab 并将此片段添加到 运行 API Jest 测试:

test:
  phases:
    preTest:
      commands:
       - npm install
    test:
      commands:
        - npm test

但是测试部分变成并保持为“待处理”

在日志中我只看到以下内容:

                                 # Starting phase: preTest
                                 # Executing command: npm install
2020-10-28T05:58:39.496Z [WARNING]: npm

有人可以帮忙吗?

运行 手表模式测试解决问题:

npm test -- --watchAll=false