如何在 Circle CI 上运行 mocha 测试

时间:2021-01-24 14:52:06

标签: firebase circleci

尝试在部署到 Firebase 之前进行自动测试。为什么使用此 yaml 配置未运行测试?

jobs:
  build-prod:
    docker:
      - image: circleci/node:10.16.3-stretch
    working_directory: ~/project
    steps:
      - checkout
      - run:
          name: Install Firebase
          command: sudo npm install -g firebase-tools
      - run:
          name: NPM Install
          command: cd ./functions && npm install && cd -
      - run:    
          name: Run tests
          command: cd ./functions && npm run test:integration && cd - 

只显示

> functions@ ****:integration /home/circleci/project/functions
> mocha ./src/****/integration/**/*.js

  0 passing (3ms)

0 个答案:

没有答案