chore: cleanup vitest setup

This commit is contained in:
Nathan Walker
2025-07-11 16:29:31 -07:00
parent 300af8fdd7
commit 2d5d62b9f7

View File

@ -1,10 +1,7 @@
// @ts-nocheck // @ts-nocheck
// vitest.setup.ts
import { beforeAll, afterAll, vi } from 'vitest'; import { beforeAll, afterAll, vi } from 'vitest';
vi.mock('@nativescript/core/application', () => null); // Mock out global variables and platform APIs touched while unit testing
// Set up global variable
global.__UNIT_TEST__ = true; global.__UNIT_TEST__ = true;
global.__DEV__ = true; global.__DEV__ = true;
global.__ANDROID__ = false; global.__ANDROID__ = false;