Files
rea/tests/process-global/nativeModuleResolverEnvironment.test.ts
T

64 lines
2.5 KiB
TypeScript

import { readFile, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { afterEach, expect, it, onTestFinished, vi } from "vitest";
import { NativeModuleResolver } from "../../src/browser/modules/NativeModuleResolver.js";
import { observeProcessStartIdentity } from "../../src/process/ProcessOwnershipObservation.js";
import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js";
afterEach(() => vi.unstubAllEnvs());
// Playwright starts the actual selected executable, which records its environment
// and exits before the browser handshake. This proves launch inheritance only.