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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…