@@ -131,13 +131,13 @@ export interface TestEnvironmentConfig {
131131export interface HostAndPort {
132132 /**
133133 * The host of the emulator. Can be omitted if discovered automatically through the hub or
134- * specified via environment variables. See { @code TestEnvironmentConfig} for details.
134+ * specified via environment variables. See ` TestEnvironmentConfig` for details.
135135 */
136136 host : string ;
137137
138138 /**
139139 * The port of the emulator. Can be omitted if discovered automatically through the hub or
140- * specified via environment variables. See { @code TestEnvironmentConfig} for details.
140+ * specified via environment variables. See ` TestEnvironmentConfig` for details.
141141 */
142142 port : number ;
143143}
@@ -170,12 +170,12 @@ export interface RulesTestEnvironment {
170170 } ;
171171
172172 /**
173- * Create a { @code RulesTestContext} which behaves like an authenticated Firebase Auth user.
173+ * Create a ` RulesTestContext` which behaves like an authenticated Firebase Auth user.
174174 *
175175 * Requests created via the returned context will have a mock Firebase Auth token attached.
176176 *
177- * @param user_id the User ID of the user. Specifies the value of "user_id" and "sub" on the token
178- * @param tokenOptions custom claims or overrides for Firebase Auth token payloads
177+ * @param user_id - the User ID of the user. Specifies the value of "user_id" and "sub" on the token
178+ * @param tokenOptions - custom claims or overrides for Firebase Auth token payloads
179179 *
180180 * @example
181181 * ```javascript
@@ -189,7 +189,7 @@ export interface RulesTestEnvironment {
189189 ) : RulesTestContext ;
190190
191191 /**
192- * Create a { @code RulesTestContext} which behaves like client that is NOT logged in via Firebase
192+ * Create a ` RulesTestContext` which behaves like client that is NOT logged in via Firebase
193193 * Auth.
194194 *
195195 * Requests created via the returned context will not have Firebase Auth tokens attached.
@@ -222,7 +222,7 @@ export interface RulesTestEnvironment {
222222 clearDatabase ( ) : Promise < void > ;
223223
224224 /**
225- * Clear data in the Firestore that belongs to the { @code projectId} in the Firestore emulator.
225+ * Clear data in the Firestore that belongs to the ` projectId` in the Firestore emulator.
226226 */
227227 clearFirestore ( ) : Promise < void > ;
228228
@@ -236,7 +236,7 @@ export interface RulesTestEnvironment {
236236 * created in test environment and clean up the underlying resources, allowing a clean exit.
237237 *
238238 * This method does not change the state in emulators in any way. To reset data between tests,
239- * see { @code clearDatabase()}, { @code clearFirestore()} and { @code clearStorage()} .
239+ * see ` clearDatabase()`, ` clearFirestore()` and ` clearStorage()` .
240240 */
241241 cleanup ( ) : Promise < void > ;
242242}
@@ -247,38 +247,38 @@ export interface RulesTestEnvironment {
247247 */
248248export interface RulesTestContext {
249249 /**
250- * Get a Firestore instance for this test context. The returned Firebase JS Client SDK instance
250+ * Get a { @link @firebase/firestore# Firestore} instance for this test context. The returned Firebase JS Client SDK instance
251251 * can be used with the client SDK APIs (v9 modular or v9 compat).
252252 *
253- * See: https:// firebase.google.com/docs/reference/js/v9/firestore_
254- * @param settings a settings object to configure the {@code Firestore} instance
255- * @returns a Firestore instance configured to connect to the emulator
253+ * See: { @link @ firebase/firestore#Firestore }
254+ * @param settings - a settings object to configure the {@link @firebase/firestore# Firestore } instance
255+ * @returns a ` Firestore` instance configured to connect to the emulator
256256 * @public
257257 */
258258 firestore (
259259 settings ?: firebase . firestore . Settings
260260 ) : firebase . firestore . Firestore ;
261261
262262 /**
263- * Get a Firestore instance for this test context. The returned Firebase JS Client SDK instance
263+ * Get a { @link @firebase/database#Database } instance for this test context. The returned Firebase JS Client SDK instance
264264 * can be used with the client SDK APIs (v9 modular or v9 compat).
265265 *
266- * See: https:// firebase.google.com/docs/reference/js/v9/firestore_
267- * @param databaseURL the URL of the Realtime Database instance. If specified, returns an instance
266+ * See: { @link @ firebase/database#Database }
267+ * @param databaseURL - the URL of the Realtime Database instance. If specified, returns an instance
268268 * for an emulated version of the namespace with parameters extracted from URL
269- * @returns a Database instance configured to connect to the emulator. It never connects to
270- * production even if a production databaseURL is specified
269+ * @returns a ` Database` instance configured to connect to the emulator. It never connects to
270+ * production even if a production ` databaseURL` is specified
271271 */
272272 database ( databaseURL ?: string ) : firebase . database . Database ;
273273
274274 /**
275- * Get a Storage instance for this test context. The returned Firebase JS Client SDK instance
275+ * Get a { @link @firebase/storage#FirebaseStorage } instance for this test context. The returned Firebase JS Client SDK instance
276276 * can be used with the client SDK APIs (v9 modular or v9 compat).
277277 *
278- * See: https:// firebase.google.com/docs/reference/js/v9/firestore_
279- * @param settings the gs:// url to the Firebase Storage Bucket for testing. If specified,
280- * returns a Storage instance for an emulated version of the bucket name
281- * @returns a Storage instance configured to connect to the emulator
278+ * See: { @link @ firebase/storage#FirebaseStorage }
279+ * @param settings - the gs:// url to the Firebase Storage Bucket for testing. If specified,
280+ * returns a ` Storage` instance for an emulated version of the bucket name
281+ * @returns a ` Storage` instance configured to connect to the emulator
282282 */
283283 storage ( bucketUrl ?: string ) : firebase . storage . Storage ;
284284}
0 commit comments