Skip to content

chore(deps): bump @kubernetes/client-node from 1.4.0 to 2.0.2 - #1130

Open
dependabot[bot] wants to merge 11 commits into
mainfrom
dependabot/npm_and_yarn/kubernetes/client-node-2.0.2
Open

dependabot[bot] wants to merge 11 commits into
mainfrom
dependabot/npm_and_yarn/kubernetes/client-node-2.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 9, 2026

Copy link
Copy Markdown
Contributor

Bumps @kubernetes/client-node from 1.4.0 to 2.0.2.

Release notes

Sourced from @​kubernetes/client-node's releases.

Release 2.0.2

What's Changed

  • Add support for exec policy.

Full Changelog: kubernetes-client/javascript@2.0.1...2.0.2

Release 2.0.1

Full Changelog: kubernetes-client/javascript@2.0.0...2.0.1

Release 2.0.0

Breaking Changes

  • HTTP backend migrated from node-fetch to undici. undici is now the underlying fetch implementation. The node-fetch dependency has been removed. Code relying on node-fetch-specific Agent/request internals or proxy wiring may need updates; the client now configures an undici Dispatcher instead of a node-fetch agent. (#2306)
  • Dropped Node.js 18 support. Node 18 removed from the test matrix (EOL Apr 30, 2025). (#2815)
  • Dropped Node.js 20 support. (#2840)
  • Dropped Node.js 23 support. (#2840)
  • socks-proxy-agent upgraded 8.x → 10.x and socks added as a direct dependency for the undici SOCKS proxy path. (#2820, #2802)
  • undici pinned to ^8.0.0. (#2821)

Features

  • Add SOCKS proxy support on the undici dispatcher path via a SocksClient connector. (#2802)
  • Add support for OIDC custom CA certificates via idp-certificate-authority and idp-certificate-authority-data. (#2761)
  • Allow port forwarding to a Deployment or Service (previously Pod-only). (#2749)
  • Introduce Node.js 26 support / testing. (#2848)
  • Generated against Kubernetes API release-1.36 (updated from release-1.34 via release-1.35 and release-1.36). (#2732, #2734, #2945)

Fixes

  • informer: treat TimeoutError as reconnectable, normalize timeout errors, and add exponential backoff on reconnect. (#2813)
  • Fix custom fetch implementation to use the Node.js https module instead of the dispatcher. (#2761)
  • Fix ArrayBuffer slice to return only the relevant portion of the buffer. (#2761)
  • Fix timeoutSignal being lost after being overridden with controller.signal. (#2665)
  • Fix cp from a Pod being broken. (#2664)
  • Fix Knative Service YAML parsing by checking API groups. (#2688)
  • Don't cast undefined expiration times in exec auth. (#2666)
  • Add a File polyfill for Node.js compatibility with undici (interim, prior to dropping older Node versions). (#2815)

Tooling / Internal

  • Migrated the full test suite from nock to the undici MockAgent; nock dependency removed. (#2813, #2306)
  • TypeScript upgraded to 6.x; ESLint upgraded to 10.x; typescript-eslint to 8.6x. (#2807, #2765, #2885)

... (truncated)

Commits
  • 82319f1 Merge pull request #3130 from kubernetes-client/copilot/prepare-2.0.2
  • 42f7348 Prepare 2.0.2
  • 70a8d74 Merge pull request #3129 from kubernetes-client/cherry-pick-3109-release-2.0
  • 44d0650 Merge pull request #3109 from kubernetes-client/copilot/implement-exec-creden...
  • 1c811ad Pin node version in release workflow
  • 73e4414 Prepare 2.0.1
  • b02ad64 ci: pin the Node 26 matrix entry to 26.7
  • 4895d44 fix: use inactivity timeout for watch instead of whole-request timeout
  • f72cc23 Merge pull request #3006 from davidgamero/release-2.0.0
  • 07c47b0 chore: update version from 2.0.0-rc.1 to 2.0.0 in package-lock.json
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​kubernetes/client-node since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@kubernetes/client-node](https://github.com/kubernetes-client/javascript) from 1.4.0 to 2.0.2.
- [Release notes](https://github.com/kubernetes-client/javascript/releases)
- [Commits](kubernetes-client/javascript@1.4.0...2.0.2)

---
updated-dependencies:
- dependency-name: "@kubernetes/client-node"
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependabot dependencies Pull requests that update a dependency file labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Coverage report

Caution

Test run failed

St.❔
Category Percentage Covered / Total
🟡 Statements
64.34% (+3.54% 🔼)
1099/1708
🔴 Branches
51.18% (+3.75% 🔼)
346/676
🔴 Functions
51.77% (-2.85% 🔻)
146/282
🟡 Lines
64.66% (+4.56% 🔼)
1021/1579
Show files with reduced coverage 🔻
St.❔
File Statements Branches Functions Lines
🟡 error.ts
63.04% (-17.39% 🔻)
35.71% (-21.43% 🔻)
35.71% (-28.57% 🔻)
62.22% (-17.78% 🔻)
🔴 stubs/uuid.ts
40% (-13.33% 🔻)
100%
0% (-20% 🔻)
40% (-13.33% 🔻)
🟡 git/connect.ts 65.38%
71.43% (-7.14% 🔻)
75% 65.38%
🟢
... / session.ts
91.73% (-0.75% 🔻)
79.03% (-4.84% 🔻)
91.67% 93.1%
🔴 authz.ts
60.28% (-29.08% 🔻)
41.18% (-32.35% 🔻)
60% (-31.43% 🔻)
58.33% (-33.33% 🔻)
🟡 otomi-models.ts
69.23% (-15.38% 🔻)
50% (-25% 🔻)
20% (-40% 🔻)
69.23% (-15.38% 🔻)
🟡
... / file-map.ts
79.66% (-10.17% 🔻)
64.29% (-14.29% 🔻)
71.43% (-14.29% 🔻)
79.66% (-10.17% 🔻)
🔴
... / file-store.ts
34.72% (-17.62% 🔻)
20.51% (-14.1% 🔻)
32.14% (-28.57% 🔻)
36.21% (-18.39% 🔻)

Test suite run failed

Failed tests: 0/321. Failed suites: 14/32.
  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { ApiException, CoreV1Api, KubeConfig, V1Secret } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 |
      4 | import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/otomi-stack.ts:1:1)
      at Object.<anonymous> (src/middleware/session.ts:11:1)
      at Object.<anonymous> (src/middleware/error.ts:7:1)
      at Object.<anonymous> (src/middleware/index.ts:2:1)
      at Object.<anonymous> (src/app.ts:13:1)
      at Object.<anonymous> (src/api-v2.authz.test.ts:3:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { ApiException, CoreV1Api, KubeConfig, V1Secret } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 |
      4 | import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/otomi-stack.ts:1:1)
      at Object.<anonymous> (src/otomi-stack.test.ts:11:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { ApiException, CoreV1Api, KubeConfig, V1Secret } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 |
      4 | import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/otomi-stack.ts:1:1)
      at Object.<anonymous> (src/middleware/session.ts:11:1)
      at Object.<anonymous> (src/middleware/error.ts:7:1)
      at Object.<anonymous> (src/middleware/index.ts:2:1)
      at Object.<anonymous> (src/app.ts:13:1)
      at Object.<anonymous> (src/api.authz.test.ts:3:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

      14 | // Mock the KubeConfig
      15 | jest.mock('@kubernetes/client-node', () => {
    > 16 |   const actual = jest.requireActual('@kubernetes/client-node')
         |                       ^
      17 |   return {
      18 |     ...actual,
      19 |     KubeConfig: jest.fn().mockImplementation(() => ({

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at src/k8s-operations.test.ts:16:23
      at Object.<anonymous> (src/k8s-operations.test.ts:1:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { AppsV1Api, CustomObjectsApi, KubeConfig, KubernetesObject, V1Deployment } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 | import { KubernetesListObject } from '@kubernetes/client-node/dist/types'
      4 |

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/ai/k8s.ts:1:1)
      at Object.<anonymous> (src/ai/aiModelHandler.ts:3:1)
      at Object.<anonymous> (src/ai/AkamaiAgentCR.ts:4:1)
      at Object.<anonymous> (src/ai/AkamaiAgentCR.test.ts:1:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { AppsV1Api, CustomObjectsApi, KubeConfig, KubernetesObject, V1Deployment } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 | import { KubernetesListObject } from '@kubernetes/client-node/dist/types'
      4 |

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/ai/k8s.ts:1:1)
      at Object.<anonymous> (src/ai/aiModelHandler.ts:3:1)
      at Object.<anonymous> (src/ai/aiModelHandler.test.ts:2:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { AppsV1Api, CustomObjectsApi, KubeConfig, KubernetesObject, V1Deployment } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 | import { KubernetesListObject } from '@kubernetes/client-node/dist/types'
      4 |

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/ai/k8s.ts:1:1)
      at Object.<anonymous> (src/ai/aiModelHandler.ts:3:1)
      at Object.<anonymous> (src/ai/AkamaiKnowledgeBaseCR.ts:2:1)
      at Object.<anonymous> (src/ai/AkamaiKnowledgeBaseCR.test.ts:1:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { AppsV1Api, CustomObjectsApi, KubeConfig, KubernetesObject, V1Deployment } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 | import { KubernetesListObject } from '@kubernetes/client-node/dist/types'
      4 |

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/ai/k8s.ts:1:1)
      at Object.<anonymous> (src/ai/DatabaseCR.ts:1:1)
      at Object.<anonymous> (src/ai/DatabaseCR.test.ts:1:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { ApiException, CoreV1Api, KubeConfig, V1Secret } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 |
      4 | import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/otomi-stack.ts:1:1)
      at Object.<anonymous> (src/utils/wizardUtils.test.ts:19:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import {
        | ^
      2 |   CoreV1Api,
      3 |   CustomObjectsApi,
      4 |   KubeConfig,

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/k8s-operations.ts:1:1)
      at Object.<anonymous> (src/utils/sealedSecretUtils.ts:10:1)
      at Object.<anonymous> (src/utils/sealedSecretUtils.test.ts:1:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { AppsV1Api, CustomObjectsApi, KubeConfig, V1Deployment } from '@kubernetes/client-node'
        | ^
      2 | import {
      3 |   getDeploymentsWithAIModelLabels,
      4 |   getKnowledgeBaseCNPGClusters,

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/ai/k8s.test.ts:1:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { ApiException, CoreV1Api, KubeConfig, V1Secret } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 |
      4 | import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/otomi-stack.ts:1:1)
      at Object.<anonymous> (src/middleware/jwt.test.ts:4:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import {
        | ^
      2 |   CoreV1Api,
      3 |   CustomObjectsApi,
      4 |   KubeConfig,

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/k8s-operations.ts:1:1)
      at Object.<anonymous> (src/utils/userUtils.ts:7:1)
      at Object.<anonymous> (src/utils/userUtils.test.ts:2:1)


  ● Test suite failed to run

    Must use import to load ES Module: /home/runner/work/apl-api/apl-api/node_modules/socks-proxy-agent/dist/index.js

    The file contains ESM syntax (import/export) that could not be executed as CommonJS. Either:
      - Configure a transform (e.g. babel-jest) that compiles this file to CommonJS (see https://jestjs.io/docs/code-transformation)
      - If the file is in "node_modules", allow it to be transformed by adjusting "transformIgnorePatterns" (see https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
      - Use Node v24.9+ where Jest supports require(esm) natively (see https://jestjs.io/docs/ecmascript-modules#require-of-esm)

    > 1 | import { ApiException, CoreV1Api, KubeConfig, V1Secret } from '@kubernetes/client-node'
        | ^
      2 | import Debug from 'debug'
      3 |
      4 | import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'

      at createRequireEsmError (node_modules/jest-runtime/build/index.js:452:17)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/config.ts:48:1)
      at Object.<anonymous> (node_modules/@kubernetes/client-node/src/index.ts:2:1)
      at Object.<anonymous> (src/otomi-stack.ts:1:1)
      at Object.<anonymous> (src/middleware/session.ts:11:1)
      at Object.<anonymous> (src/middleware/error.ts:7:1)
      at Object.<anonymous> (src/middleware/index.ts:2:1)
      at Object.<anonymous> (src/app.ts:13:1)
      at Object.<anonymous> (src/api.test.ts:3:1)

Report generated by 🧪jest coverage report action from 034329d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependabot dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant