reactjs github操作中失败的测试

alen0pnh  于 2022-11-22  发布在  React
关注(0)|答案(1)|浏览(154)

我有一个react的项目,我在github中创建了一个文件夹,用于操作。但是,返回了下一个错误。

我的代码:

name: UnitTests

on: [push]

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Setup Node.js
        uses: actions/setup-node@v1
        with:
          node-version: '14.x'

      - name: Prepare cache
        uses: actions/cache@v2
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Install node-sass
        run: npm i node-sass

      - name: Install dependencies
        run: npm ci

      - name: Run tests
        run: npm run test:ci

包是-"test:ci": "npm run test --findRelatedTests ./src -b",
我需要解决方案,但找不到
所有测试均正确

相关问题