Skip to content

build(deps): bump @octokit/request and @octokit/rest #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 15, 2025

Bumps @octokit/request to 9.2.3 and updates ancestor dependency @octokit/rest. These dependencies need to be updated together.

Updates @octokit/request from 5.6.3 to 9.2.3

Release notes

Sourced from @​octokit/request's releases.

v9.2.3

9.2.3 (2025-04-10)

Bug Fixes

  • deps: update dependency @​octokit/types to v14 (#753) (7d576b0)

v9.2.2

9.2.2 (2025-02-14)

Bug Fixes

  • deps: update dependency @​octokit/request-error to v6.1.7 [security] (#740) (4b2f485)

v9.2.1

9.2.1 (2025-02-13)

Bug Fixes

  • mitigate ReDos vulnerabilities & lint (#738) (6bb29ba)

v9.2.0

9.2.0 (2025-01-16)

Features

  • correctly parse response bodies as JSON where the Content-Type is application/scim+json (#731) (00bf316)

v9.1.4

9.1.4 (2024-12-29)

Bug Fixes

  • deps: bump @octokit/types to fix deno compat (#730) (324ffef)

v9.1.3

9.1.3 (2024-07-14)

Bug Fixes

v9.1.2

9.1.2 (2024-07-13)

... (truncated)

Commits
  • 7d576b0 fix(deps): update dependency @​octokit/types to v14 (#753)
  • c9bfc37 build(deps): bump vite from 6.1.0 to 6.2.5 (#750)
  • f7b9616 ci(prettier): use Node LTS instead of Node 16 (#748)
  • 1955847 chore(deps): update dependency prettier to v3.5.3 (#745)
  • b71107b chore(deps): update dependency semantic-release-plugin-update-version-in-file...
  • c855943 chore(deps): update dependency prettier to v3.5.2 (#743)
  • 4b2f485 fix(deps): update dependency @​octokit/request-error to v6.1.7 [security] (#740)
  • 0320a42 chore(deps): update dependency prettier to v3.5.1 (#737)
  • 6bb29ba fix: mitigate ReDos vulnerabilities & lint (#738)
  • 34ff07e Merge commit from fork
  • Additional commits viewable in compare view

Updates @octokit/rest from 18.12.0 to 21.1.1

Release notes

Sourced from @​octokit/rest's releases.

v21.1.1

21.1.1 (2025-02-14)

Bug Fixes

  • deps: update Octokit dependencies to mitigate ReDos [security] (#484) (ca256c3)

v21.1.0

21.1.0 (2025-01-08)

Features

  • new endpoints, bump Octokit deps to fix Deno (#477) (908b1c8)

v21.0.2

21.0.2 (2024-08-16)

Bug Fixes

v21.0.1

21.0.1 (2024-07-17)

Bug Fixes

v21.0.0

21.0.0 (2024-06-20)

Features

BREAKING CHANGES

  • package is now ESM

v21.0.0-beta.4

21.0.0-beta.4 (2024-06-19)

... (truncated)

Commits
  • ca256c3 fix(deps): update Octokit dependencies to mitigate ReDos [security] (#484)
  • e791111 chore(deps): update dependency esbuild to ^0.25.0 (#483)
  • facaa50 build(deps-dev): Bump vitest and @​vitest/coverage-v8 (#481)
  • 8a0c472 chore(deps): update dependency undici to v6.21.1 [security] (#480)
  • 4abc914 chore(deps): update vitest monorepo to v3 (major) (#478)
  • 908b1c8 feat: new endpoints, bump Octokit deps to fix Deno (#477)
  • 751b522 chore(deps): update dependency fetch-mock to v12 (#470)
  • 5ad12fd chore(deps): update dependency @​types/node to v22 (#472)
  • c88980a ci(action): update actions/checkout digest to 11bd719 (#469)
  • 94443df ci(action): update actions/checkout digest to eef6144 (#467)
  • Additional commits viewable in compare view

You can trigger a rebase of this PR 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [@octokit/request](https://github.com/octokit/request.js) to 9.2.3 and updates ancestor dependency [@octokit/rest](https://github.com/octokit/rest.js). These dependencies need to be updated together.


Updates `@octokit/request` from 5.6.3 to 9.2.3
- [Release notes](https://github.com/octokit/request.js/releases)
- [Commits](octokit/request.js@v5.6.3...v9.2.3)

Updates `@octokit/rest` from 18.12.0 to 21.1.1
- [Release notes](https://github.com/octokit/rest.js/releases)
- [Commits](octokit/rest.js@v18.12.0...v21.1.1)

---
updated-dependencies:
- dependency-name: "@octokit/request"
  dependency-version: 9.2.3
  dependency-type: indirect
- dependency-name: "@octokit/rest"
  dependency-version: 21.1.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 15, 2025
Copy link
Contributor

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🟡 Statements
79.9% (-9.3% 🔻)
159/199
🟡 Branches
70% (-15.33% 🔻)
49/70
🟡 Functions
77.08% (-10.42% 🔻)
37/48
🟡 Lines
78.95% (-10.1% 🔻)
150/190
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟡 git/git-util.ts
74% (-26% 🔻)
61.9% (-38.1% 🔻)
60% (-40% 🔻)
71.11% (-28.89% 🔻)
🔴
... / console-logger-service.ts
57.14% (-28.57% 🔻)
75% (-25% 🔻)
40% (-40% 🔻)
57.14% (-28.57% 🔻)

Test suite run failed

Failed tests: 0/57. Failed suites: 12/18.
  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.require (src/service/runner/runner.ts:4:1)
      at Object.<anonymous> (test/service/runner/gha-github-runner.test.ts:2:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.require (src/service/runner/runner.ts:4:1)
      at Object.<anonymous> (test/service/runner/cli-github-runner.test.ts:2:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.require (src/service/runner/runner.ts:4:1)
      at Object.<anonymous> (test/service/runner/cli-codeberg-runner.test.ts:2:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.<anonymous> (test/service/configs/pullrequest/gitlab-pr-configs-parser.test.ts:3:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.require (src/service/runner/runner.ts:4:1)
      at Object.<anonymous> (test/service/runner/cli-gitlab-runner.test.ts:2:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.<anonymous> (test/service/configs/pullrequest/github-pr-configs-parser.test.ts:3:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.require (src/service/runner/runner.ts:4:1)
      at Object.<anonymous> (test/service/runner/gha-gitlab-runner.test.ts:2:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.<anonymous> (test/service/configs/pullrequest/github-pr-configs-parser-multiple.test.ts:3:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.<anonymous> (test/service/git/gitlab/gitlab-client.test.ts:1:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.require (src/service/configs/pullrequest/pr-configs-parser.ts:6:1)
      at Object.<anonymous> (test/service/configs/pullrequest/gitlab-pr-configs-parser-multiple.test.ts:3:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.<anonymous> (test/service/git/git-client-factory.test.ts:1:1)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/git-backporting/git-backporting/node_modules/@octokit/rest/dist-src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { Octokit as Core } from "@octokit/core";
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import LoggerService from "@bp/service/logger/logger-service";
      2 | import LoggerServiceFactory from "@bp/service/logger/logger-service-factory";
    > 3 | import { Octokit } from "@octokit/rest";
        | ^
      4 |
      5 | /**
      6 |  * Singleton factory class for {Octokit} instance

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1495:14)
      at Object.require (src/service/git/github/octokit-factory.ts:3:1)
      at Object.require (src/service/git/github/github-client.ts:5:1)
      at Object.require (src/service/git/git-client-factory.ts:3:1)
      at Object.<anonymous> (test/service/git/github/github-client.test.ts:1:1)

Report generated by 🧪jest coverage report action from 1eaabc1

@lampajr
Copy link
Member

lampajr commented Apr 15, 2025

Unfortunately this upgrade will require a huge refactoring and that is not so straightforward 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant