mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
chore: cleanup vitest setup
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user