We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86b7e3 commit 6c94626Copy full SHA for 6c94626
packages/database/e2e/helpers.js
@@ -1,4 +1,18 @@
1
+// Eliminate annoying warning about double-loading firebase while
2
+// on Other platform - we load it, and rules-unit-testing does as well
3
+
4
+// eslint-disable-next-line no-console
5
+const originalConsoleWarn = console.warn;
6
7
+console.warn = function (message) {
8
+ if (message && typeof message === 'string' && !message.includes('@firebase/app-compat')) {
9
+ originalConsoleWarn(message);
10
+ }
11
+};
12
const testingUtils = require('@firebase/rules-unit-testing');
13
14
+console.warn = originalConsoleWarn;
15
16
const { getE2eTestProject, getE2eEmulatorHost } = require('../../app/e2e/helpers');
17
18
// TODO make more unique?
0 commit comments