Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

test(create): count the RMBG custom-node entry + smoke-test it

purplea67ce0ab7f94
diff --git a/src/api/__tests__/comfyui-bundles.test.ts b/src/api/__tests__/comfyui-bundles.test.ts
index db6246f3..69c52b95 100644
--- a/src/api/__tests__/comfyui-bundles.test.ts
+++ b/src/api/__tests__/comfyui-bundles.test.ts
@@ -106,11 +106,12 @@ describe('Custom Node Registry', () => {
expect(new Set(repos).size).toBe(repos.length)
})
- it('has 6 custom node entries', () => {
- // v2.4.5 added 'videohelpersuite' for Bug A (MP4 video output) — when this
- // registry grows again, bump the number AND add a smoke test below for the
- // new entry so future drift is loud.
- expect(Object.keys(CUSTOM_NODE_REGISTRY).length).toBe(6)
+ it('has 7 custom node entries', () => {
+ // v2.4.5 added 'videohelpersuite' for Bug A (MP4 video output); v2.5.7 added
+ // 'rmbg' for the Remove-Background cutout. When this registry grows again,
+ // bump the number AND add a smoke test below for the new entry so future
+ // drift is loud.
+ expect(Object.keys(CUSTOM_NODE_REGISTRY).length).toBe(7)
})
it('videohelpersuite entry routes to Kosinkadink upstream', () => {
@@ -119,6 +120,13 @@ describe('Custom Node Registry', () => {
expect(entry.repo).toBe('https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite')
expect(entry.requiredNodes).toContain('VHS_VideoCombine')
})
+
+ it('rmbg entry routes to 1038lab upstream and requires the RMBG node', () => {
+ const entry = CUSTOM_NODE_REGISTRY['rmbg']
+ expect(entry).toBeTruthy()
+ expect(entry.repo).toBe('https://github.com/1038lab/ComfyUI-RMBG')
+ expect(entry.requiredNodes).toContain('RMBG')
+ })
})
describe('Shared File Deduplication', () => {