firebase-functions-test

v3.3.0
A testing companion to firebase-functions.
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}'
npm i firebase-functions-test

Metadata

  • MIT
  • >=14.0.0
  • Firebase Team
  • released 6/3/2024

Downloads