Files
ComfyUI_frontend/apps
Glary-Bot c753f30a5f test(website): isolate cloudNodes suite from WEBSITE_CLOUD_NODES_FIXTURE
Defensive hardening per CodeRabbit feedback. WEBSITE_CLOUD_NODES_FIXTURE
is currently read only by loadPacksForBuild (cloudNodes.build.ts), not
by fetchCloudNodesForBuild, so the tests in cloudNodes.test.ts are not
affected today. But clearing the env var in beforeEach and restoring it
in afterEach guards against future refactors that might let the override
bleed into the fetcher, and matches the pattern already used in
cloudNodes.build.test.ts.

Also fixes a latent bug in the existing afterEach: previously,
process.env.WEBSITE_CLOUD_API_KEY = savedCloudApiKey would set the env
var to the literal string 'undefined' when savedCloudApiKey was unset.
Now both env vars are conditionally restored (matching the cloudNodes.build
test convention).
2026-05-14 20:32:40 +00:00
..