Skip to content

Commit a16efca

Browse files
test: fix paths in types.d.ts
1 parent 2f7a5fd commit a16efca

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

packages/analytics/__tests__/analytics.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ import analytics, {
6161
setConsent,
6262
settings,
6363
} from '../lib';
64+
import '../lib/types.d.ts';
6465

65-
import { createCheckV9Deprecation } from '@react-native-firebase/app/common/unitTestUtils';
66-
import type { CheckV9DeprecationFunction } from '@react-native-firebase/app/common/unitTestUtils';
66+
import { createCheckV9Deprecation } from '@react-native-firebase/app/lib/common/unitTestUtils';
67+
import type { CheckV9DeprecationFunction } from '@react-native-firebase/app/lib/common/unitTestUtils';
6768

6869
describe('Analytics', function () {
6970
describe('namespace', function () {

packages/analytics/lib/types.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ declare module '@react-native-firebase/app/lib/common' {
1515
declare module '@react-native-firebase/app/lib/common/unitTestUtils' {
1616
export const getFirebaseApp: () => any;
1717
export const getMockNativeModule: (name: string) => any;
18-
export function createCheckV9Deprecation(moduleName: string): CheckV9DeprecationFunction;
19-
export type CheckV9DeprecationFunction = (methodName: string) => void;
18+
export function createCheckV9Deprecation(moduleNames: string[]): CheckV9DeprecationFunction;
19+
export type CheckV9DeprecationFunction = (
20+
modularFunction: () => void,
21+
nonModularFunction: () => void,
22+
methodNameKey: string,
23+
uniqueMessage?: string | null,
24+
ignoreFirebaseAppDeprecationWarning?: boolean,
25+
) => void;
2026
}
2127

2228
declare module '@react-native-firebase/app/lib/common/validate' {

0 commit comments

Comments
 (0)