Skip to content

Commit d330c01

Browse files
committed
chore: refactor import
1 parent 94ae974 commit d330c01

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

packages/app-distribution/__tests__/app-distribution.test.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@ import {
1818
import FirebaseModule from '../../app/lib/internal/FirebaseModule';
1919

2020
// Mock isIOS to be true so the app distribution methods work in tests
21-
jest.mock(
22-
'@react-native-firebase/app/lib/common',
23-
() => ({
21+
jest.mock('@react-native-firebase/app/lib/common', () => {
22+
const actualCommon = jest.requireActual('@react-native-firebase/app/lib/common');
23+
return Object.assign({}, actualCommon, {
2424
isIOS: true,
25-
isAndroid: false,
26-
isOther: false,
27-
}),
28-
{ virtual: true },
29-
);
25+
});
26+
});
3027

3128
describe('appDistribution()', function () {
3229
describe('namespace', function () {

packages/app-distribution/lib/modular/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getApp } from '@react-native-firebase/app';
2-
import { MODULAR_DEPRECATION_ARG } from '../../../app/lib/common';
3-
2+
import { MODULAR_DEPRECATION_ARG } from '@react-native-firebase/app/lib/common';
43
/**
54
* @typedef {import("..").FirebaseApp} FirebaseApp
65
* @typedef {import("..").FirebaseAppDistributionTypes.AppDistributionRelease} AppDistributionRelease

0 commit comments

Comments
 (0)