Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
417 views
in Technique[技术] by (71.8m points)

firebase - How to run mocha tests on Circle CI

Trying to make auto testing before deploying to Firebase. Why tests are not running with this yaml config?

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 - 

It only shows

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

  0 passing (3ms)
question from:https://stackoverflow.com/questions/65872022/how-to-run-mocha-tests-on-circle-ci

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...