(value: NodeJS.Platform)
| 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); |