Skip to content

Commit 4ce3e03

Browse files
committed
test: fix remaining e2e modular deprecation warnings
mechanical fixes grouped together for all the smaller-line-count packages
1 parent a07b83e commit 4ce3e03

File tree

13 files changed

+123
-2
lines changed

13 files changed

+123
-2
lines changed

packages/app-distribution/e2e/app-distribution.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717

1818
describe('appDistribution()', function () {
1919
describe('v8 compatibility', function () {
20+
beforeEach(async function beforeEachTest() {
21+
// @ts-ignore
22+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
23+
});
24+
25+
afterEach(async function afterEachTest() {
26+
// @ts-ignore
27+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
28+
});
29+
2030
describe('native module is loaded', function () {
2131
it('checks native module load status', function () {
2232
firebase.appDistribution().native;

packages/dynamic-links/e2e/builder.analytics.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
1919

2020
describe('dynamicLinks() dynamicLinkParams.analytics', function () {
2121
describe('v8 compatibility', function () {
22+
beforeEach(async function beforeEachTest() {
23+
// @ts-ignore
24+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
25+
});
26+
27+
afterEach(async function afterEachTest() {
28+
// @ts-ignore
29+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
30+
});
31+
2232
it('throws if analytics is not an object', function () {
2333
try {
2434
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/builder.android.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
1919

2020
describe('dynamicLinks() dynamicLinkParams.android', function () {
2121
describe('v8 compatibility', function () {
22+
beforeEach(async function beforeEachTest() {
23+
// @ts-ignore
24+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
25+
});
26+
27+
afterEach(async function afterEachTest() {
28+
// @ts-ignore
29+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
30+
});
31+
2232
it('throws if android is not an object', function () {
2333
try {
2434
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/builder.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717

1818
describe('dynamicLinks() dynamicLinkParams', function () {
1919
describe('v8 compatibility', function () {
20+
beforeEach(async function beforeEachTest() {
21+
// @ts-ignore
22+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
23+
});
24+
25+
afterEach(async function afterEachTest() {
26+
// @ts-ignore
27+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
28+
});
29+
2030
it('throws if params are not an object', function () {
2131
try {
2232
firebase.dynamicLinks().buildLink(123);

packages/dynamic-links/e2e/builder.ios.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
1919

2020
describe('dynamicLinks() dynamicLinkParams.ios', function () {
2121
describe('v8 compatibility', function () {
22+
beforeEach(async function beforeEachTest() {
23+
// @ts-ignore
24+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
25+
});
26+
27+
afterEach(async function afterEachTest() {
28+
// @ts-ignore
29+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
30+
});
31+
2232
it('throws if ios is not an object', function () {
2333
try {
2434
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/builder.itunes.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
1919

2020
describe('dynamicLinks() dynamicLinkParams.itunes', function () {
2121
describe('v8 compatibility', function () {
22+
beforeEach(async function beforeEachTest() {
23+
// @ts-ignore
24+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
25+
});
26+
27+
afterEach(async function afterEachTest() {
28+
// @ts-ignore
29+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
30+
});
31+
2232
it('throws if itunes is not an object', function () {
2333
try {
2434
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/builder.navigation.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
1919

2020
describe('dynamicLinks() dynamicLinkParams.navigation', function () {
2121
describe('v8 compatibility', function () {
22+
beforeEach(async function beforeEachTest() {
23+
// @ts-ignore
24+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
25+
});
26+
27+
afterEach(async function afterEachTest() {
28+
// @ts-ignore
29+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
30+
});
31+
2232
it('throws if navigation is not an object', function () {
2333
try {
2434
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/builder.otherplatform.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
22

33
describe('dynamicLinks() dynamicLinkParams.otherPlatform', function () {
44
describe('v8 compatibility', function () {
5+
beforeEach(async function beforeEachTest() {
6+
// @ts-ignore
7+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
8+
});
9+
10+
afterEach(async function afterEachTest() {
11+
// @ts-ignore
12+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
13+
});
14+
515
it('throws if otherPlatform is not an object', function () {
616
try {
717
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/builder.social.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const { baseParams } = require('./dynamicLinks.e2e');
1919

2020
describe('dynamicLinks() dynamicLinkParams.social', function () {
2121
describe('v8 compatibility', function () {
22+
beforeEach(async function beforeEachTest() {
23+
// @ts-ignore
24+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
25+
});
26+
27+
afterEach(async function afterEachTest() {
28+
// @ts-ignore
29+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
30+
});
31+
2232
it('throws if social is not an object', function () {
2333
try {
2434
firebase.dynamicLinks().buildLink({

packages/dynamic-links/e2e/dynamicLinks.e2e.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ module.exports.baseParams = baseParams;
6161

6262
describe('dynamicLinks()', function () {
6363
describe('v8 compatibility', function () {
64+
beforeEach(async function beforeEachTest() {
65+
// @ts-ignore
66+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
67+
});
68+
69+
afterEach(async function afterEachTest() {
70+
// @ts-ignore
71+
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = false;
72+
});
73+
6474
describe('namespace', function () {
6575
it('accessible from firebase.app()', function () {
6676
const app = firebase.app();

0 commit comments

Comments
 (0)