firebase-functions-test
v2.0.1 firebase functions google cloud test
build
npm i && node_modules/.bin/tsc -p tsconfig.release.json
build:pack
npm prune --production && rm -rf lib && npm install && node_modules/.bin/tsc -p tsconfig.release.json && npm pack && npm install
build:release
npm ci --production && npm install --no-save typescript firebase-functions firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json
lint
tslint src/{**/*,*}.ts spec/{**/*,*}.ts
pretest
tsc
test
mocha .tmp/spec/index.spec.js
posttest
npm run lint && rm -rf .tmp
preintegrationTest
tsc
integrationTest
firebase emulators:exec --project=not-a-project --only firestore 'mocha .tmp/spec/integration/**/*.spec.js'
postintegrationTest
rm -rf .tmp
format
prettier --check '**/*.{json,ts,yml,yaml}'
format:fix
prettier --write '**/*.{json,ts,yml,yaml}'