Skip to content

Repo: Failing integration tests for primary Nodejs version on main #10322

Description

@JoshuaKGoldberg

Suggestion

Example from #10320 -> https://github.com/typescript-eslint/typescript-eslint/actions/runs/11779291570/job/32807644519?pr=10320 -> https://cloud.nx.app/runs/BZlulN2Fcq:

 FAIL  tests/flat-config-types-@types__eslint-v9.test.ts (54.721 s)
  ● flat-config-types-@types__eslint-v9 › typescript › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v9.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)
Full failing test complaints
 FAIL  tests/flat-config-types-@types__eslint-v9.test.ts (54.721 s)
  ● flat-config-types-@types__eslint-v9 › typescript › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v9.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)

  ● flat-config-types-@types__eslint-v9 › typescript with --strictNullChecks › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v9.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)

  ● flat-config-types-@types__eslint-v9 › typescript with --strictNullChecks, --exactOptionalPropertyTypes › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v9.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)

 FAIL  tests/flat-config-types-@types__eslint-v8.test.ts (47.534 s)
  ● flat-config-types-@types__eslint-v8 › typescript › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig<RulesRecord>' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v8.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)

  ● flat-config-types-@types__eslint-v8 › typescript with --strictNullChecks › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig<RulesRecord>' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v8.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)

  ● flat-config-types-@types__eslint-v8 › typescript with --strictNullChecks, --exactOptionalPropertyTypes › should work successfully

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  ["eslint.config.js(65,8): error TS2461: Type 'FlatConfig<RulesRecord>' is not an array type."]

      23 |
      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)
    > 25 |       expect(lines).toHaveLength(0);
         |                     ^
      26 |     },
      27 |   );
      28 | }

      at toHaveLength (tests/flat-config-types-@types__eslint-v8.test.ts:25:21)
      at assertOutput (tools/integration-test-base.ts:197:7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)

Additional Info

:sparkling

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.repo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions