MCPcopy Index your code
hub / github.com/gitify-app/gitify / mockPlatform

Function mockPlatform

src/shared/platform.test.ts:6–10  ·  view source on GitHub ↗
(value: NodeJS.Platform)

Source from the content-addressed store, hash-verified

4 const originalPlatform = process.platform;
5
6 function mockPlatform(value: NodeJS.Platform) {
7 Object.defineProperty(process, 'platform', {
8 value,
9 });
10 }
11
12 afterAll(() => {
13 mockPlatform(originalPlatform as NodeJS.Platform);

Callers 1

platform.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected