Skip to content

Commit 26c9e70

Browse files
committed
test: turn on modular deprecation strict mode for e2e suite
remove the entanglement with retries at same time - now that strict mode is on all the time and we are not actively finding new namespaced-API usage, we don't need to disable retries for strict mode as it should be more rare / less need for speed
1 parent 4ce3e03 commit 26c9e70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ErrorUtils.setGlobalHandler((err, isFatal) => {
6969

7070
function loadTests(_) {
7171
describe('React Native Firebase', function () {
72-
if (!globalThis.RNFBDebug && !globalThis.RNFB_MODULAR_DEPRECATION_STRICT_MODE) {
72+
if (!globalThis.RNFBDebug) {
7373
// Only retry tests if not debugging or hunting deprecated API usage locally,
7474
// otherwise it gets annoying to debug.
7575
this.retries(4);

tests/globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import shouldMatchers from 'should';
4949
globalThis.RNFBDebug = false;
5050

5151
// this may be used to locate modular API errors quickly
52-
globalThis.RNFB_MODULAR_DEPRECATION_STRICT_MODE = false;
52+
globalThis.RNFB_MODULAR_DEPRECATION_STRICT_MODE = true;
5353

5454
// Needed for Platform.Other session storage
5555
import AsyncStorage from '@react-native-async-storage/async-storage';

0 commit comments

Comments
 (0)