@firebase/testing
- Version 0.20.11
- Published
- 32.7 kB
- 4 dependencies
- Apache-2.0 license
Install
npm i @firebase/testing
yarn add @firebase/testing
pnpm add @firebase/testing
Overview
A set of utilities useful for testing Security Rules with the Realtime Database or Cloud Firestore emulators.
Index
Functions
function apps
apps: () => firebase.app.App[];
function assertFails
assertFails: (pr: Promise<any>) => any;
function assertSucceeds
assertSucceeds: (pr: Promise<any>) => any;
function clearFirestoreData
clearFirestoreData: (options: ClearFirestoreDataOptions) => Promise<void>;
function initializeAdminApp
initializeAdminApp: (options: AdminAppOptions) => firebase.app.App;
Construct an App authenticated as an admin user.
function initializeTestApp
initializeTestApp: (options: AppOptions) => firebase.app.App;
Construct an App authenticated with options.auth.
function loadDatabaseRules
loadDatabaseRules: (options: LoadDatabaseRulesOptions) => Promise<void>;
function loadFirestoreRules
loadFirestoreRules: (options: LoadFirestoreRulesOptions) => Promise<void>;
Package Files (2)
Dependencies (4)
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@firebase/testing
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@firebase/testing)
- HTML<a href="https://www.jsdocs.io/package/@firebase/testing"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1279 ms. - Missing or incorrect documentation? Open an issue for this package.