mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-03 07:03:18 +00:00
19 lines
472 B
TypeScript
19 lines
472 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { sanitizeNodeEntrypointEnv } from "./node-entrypoint-runner";
|
|
|
|
describe("node-entrypoint-runner", () => {
|
|
it("removes Electron node-mode env before loading the target entrypoint", () => {
|
|
const env = {
|
|
ELECTRON_RUN_AS_NODE: "1",
|
|
ELECTRON_NO_ATTACH_CONSOLE: "1",
|
|
PATH: "/usr/bin",
|
|
};
|
|
|
|
sanitizeNodeEntrypointEnv(env);
|
|
|
|
expect(env).toEqual({
|
|
PATH: "/usr/bin",
|
|
});
|
|
});
|
|
});
|