eslint disable next litegraph tests

This commit is contained in:
Benjamin Lu
2025-08-05 18:14:47 -04:00
parent a289f44263
commit 0ce5aeb2bd
8 changed files with 22 additions and 3 deletions

View File

@@ -300,7 +300,9 @@ describe('ExecutableNodeDTO Memory Efficiency', () => {
expect(dto.inputs).toHaveLength(2) // Copied input data only
// Should not duplicate heavy node data
// eslint-disable-next-line no-prototype-builtins
expect(dto.hasOwnProperty('outputs')).toBe(false) // Outputs not copied
// eslint-disable-next-line no-prototype-builtins
expect(dto.hasOwnProperty('widgets')).toBe(false) // Widgets not copied
})
@@ -340,7 +342,9 @@ describe('ExecutableNodeDTO Memory Efficiency', () => {
expect(dto.graph).toBe(innerNode.graph)
// Should not hold heavy references that prevent GC
// eslint-disable-next-line no-prototype-builtins
expect(dto.hasOwnProperty('parentGraph')).toBe(false)
// eslint-disable-next-line no-prototype-builtins
expect(dto.hasOwnProperty('rootGraph')).toBe(false)
})
})

View File

@@ -229,7 +229,6 @@ describe('Subgraph slot connections', () => {
expect(isSubgraphInput(subgraphInput)).toBe(true)
expect(isSubgraphInput(node.inputs[0])).toBe(false)
expect(isSubgraphInput(null)).toBe(false)
// eslint-disable-next-line unicorn/no-useless-undefined
expect(isSubgraphInput(undefined)).toBe(false)
expect(isSubgraphInput({})).toBe(false)
})
@@ -243,7 +242,6 @@ describe('Subgraph slot connections', () => {
expect(isSubgraphOutput(subgraphOutput)).toBe(true)
expect(isSubgraphOutput(node.outputs[0])).toBe(false)
expect(isSubgraphOutput(null)).toBe(false)
// eslint-disable-next-line unicorn/no-useless-undefined
expect(isSubgraphOutput(undefined)).toBe(false)
expect(isSubgraphOutput({})).toBe(false)
})

View File

@@ -58,6 +58,7 @@ export interface SubgraphFixtures {
*/
export const subgraphTest = test.extend<SubgraphFixtures>({
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
emptySubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
const subgraph = createTestSubgraph({
name: 'Empty Test Subgraph',
@@ -70,6 +71,7 @@ export const subgraphTest = test.extend<SubgraphFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
simpleSubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
const subgraph = createTestSubgraph({
name: 'Simple Test Subgraph',
@@ -82,6 +84,7 @@ export const subgraphTest = test.extend<SubgraphFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
complexSubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
const subgraph = createTestSubgraph({
name: 'Complex Test Subgraph',
@@ -101,6 +104,7 @@ export const subgraphTest = test.extend<SubgraphFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
nestedSubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
const nested = createNestedSubgraphs({
depth: 3,
@@ -113,6 +117,7 @@ export const subgraphTest = test.extend<SubgraphFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
subgraphWithNode: async ({}, use: (value: unknown) => Promise<void>) => {
// Create the subgraph definition
const subgraph = createTestSubgraph({
@@ -140,6 +145,7 @@ export const subgraphTest = test.extend<SubgraphFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
eventCapture: async ({}, use: (value: unknown) => Promise<void>) => {
const subgraph = createTestSubgraph({
name: 'Event Test Subgraph'
@@ -191,6 +197,7 @@ export interface EdgeCaseFixtures {
*/
export const edgeCaseTest = subgraphTest.extend<EdgeCaseFixtures>({
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
circularSubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
const rootGraph = new LGraph()
@@ -225,6 +232,7 @@ export const edgeCaseTest = subgraphTest.extend<EdgeCaseFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
deeplyNestedSubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
// Create a very deep nesting structure (but not exceeding MAX_NESTED_SUBGRAPHS)
const nested = createNestedSubgraphs({
@@ -238,6 +246,7 @@ export const edgeCaseTest = subgraphTest.extend<EdgeCaseFixtures>({
},
// @ts-expect-error TODO: Fix after merge - fixture use parameter type
// eslint-disable-next-line no-empty-pattern
maxIOSubgraph: async ({}, use: (value: unknown) => Promise<void>) => {
// Create a subgraph with many inputs and outputs
const inputs = Array.from({ length: 20 }, (_, i) => ({