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 e430555 commit 0401b09Copy full SHA for 0401b09
packages/core/globals/index.ts
@@ -370,3 +370,6 @@ function isTestingEnv() {
370
if (!global.NativeScriptHasInitGlobal && !isTestingEnv()) {
371
initGlobal();
372
}
373
+
374
+// ensure the Application instance is initialized before any other module imports it.
375
+require('@nativescript/core/application');
packages/core/jest.setup.ts
@@ -1,4 +1,7 @@
1
// @ts-nocheck
2
3
+jest.mock('@nativescript/core/application', () => null, { virtual: true });
4
5
global.__DEV__ = true;
6
global.WeakRef.prototype.get = global.WeakRef.prototype.deref;
7
global.NativeClass = function () {};
0 commit comments