Skip to content

chore(ci): add local HTTP server for Karma tests;#7022

Merged
DigitalBrainJS merged 2 commits into
axios:v1.xfrom
DigitalBrainJS:http-server
Sep 13, 2025
Merged

chore(ci): add local HTTP server for Karma tests;#7022
DigitalBrainJS merged 2 commits into
axios:v1.xfrom
DigitalBrainJS:http-server

Conversation

@DigitalBrainJS
Copy link
Copy Markdown
Collaborator

Our tests often fail due to the httpbin.org service, so we can no longer rely on it. This PR adds a local HTTP server for some Karma tests (actually only one for now). Additionally, our CI will no longer run Karma tests on every node version, since they are independent of the server environment, so there is no point in running tests multiple times.

@DigitalBrainJS DigitalBrainJS marked this pull request as draft September 12, 2025 19:54
Comment thread test/helpers/server.js Dismissed
@DigitalBrainJS DigitalBrainJS force-pushed the http-server branch 2 times, most recently from f19afb0 to 4726d8e Compare September 12, 2025 20:10
@DigitalBrainJS DigitalBrainJS marked this pull request as ready for review September 12, 2025 20:23
@DigitalBrainJS DigitalBrainJS merged commit 9fb41a8 into axios:v1.x Sep 13, 2025
11 checks passed
mergify Bot added a commit to robfrank/linklift that referenced this pull request Sep 14, 2025
Bumps [axios](https://github.com/axios/axios) from 1.12.0 to 1.12.2.
Release notes

*Sourced from [axios's releases](https://github.com/axios/axios/releases).*

> Release v1.12.2
> ---------------
>
> Release notes:
> --------------
>
> ### Bug Fixes
>
> * **fetch:** use current global fetch instead of cached one when env fetch is not specified to keep MSW support; ([#7030](https://redirect.github.com/axios/axios/issues/7030)) ([cf78825](axios/axios@cf78825))
>
> ### Contributors to this release
>
> * [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+247/-16 ([#7030](axios/axios#7030) [#7022](axios/axios#7022) [#7024](axios/axios#7024) )")
> * [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 ([#7028](axios/axios#7028) [#7029](axios/axios#7029) )")
>
> Release v1.12.1
> ---------------
>
> Release notes:
> --------------
>
> ### Bug Fixes
>
> * **types:** fixed env config types; ([#7020](https://redirect.github.com/axios/axios/issues/7020)) ([b5f26b7](axios/axios@b5f26b7))
>
> ### Contributors to this release
>
> * [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+10/-4 ([#7020](axios/axios#7020) )")


Changelog

*Sourced from [axios's changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md).*

> [1.12.2](axios/axios@v1.12.1...v1.12.2) (2025-09-14)
> -------------------------------------------------------------------------------
>
> ### Bug Fixes
>
> * **fetch:** use current global fetch instead of cached one when env fetch is not specified to keep MSW support; ([#7030](https://redirect.github.com/axios/axios/issues/7030)) ([cf78825](axios/axios@cf78825))
>
> ### Contributors to this release
>
> * [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+247/-16 ([#7030](axios/axios#7030) [#7022](axios/axios#7022) [#7024](axios/axios#7024) )")
> * [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 ([#7028](axios/axios#7028) [#7029](axios/axios#7029) )")
>
> [1.12.1](axios/axios@v1.12.0...v1.12.1) (2025-09-12)
> -------------------------------------------------------------------------------
>
> ### Bug Fixes
>
> * **types:** fixed env config types; ([#7020](https://redirect.github.com/axios/axios/issues/7020)) ([b5f26b7](axios/axios@b5f26b7))
>
> ### Contributors to this release
>
> * [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+10/-4 ([#7020](axios/axios#7020) )")


Commits

* [`e5a3336`](axios/axios@e5a3336) chore(release): v1.12.2 ([#7031](https://redirect.github.com/axios/axios/issues/7031))
* [`38726c7`](axios/axios@38726c7) refactor: change if in else to else if ([#7028](https://redirect.github.com/axios/axios/issues/7028))
* [`cf78825`](axios/axios@cf78825) fix(fetch): use current global fetch instead of cached one when env fetch is ...
* [`c26d00f`](axios/axios@c26d00f) refactor: remove redundant assignment ([#7029](https://redirect.github.com/axios/axios/issues/7029))
* [`9fb41a8`](axios/axios@9fb41a8) chore(ci): add local HTTP server for Karma tests; ([#7022](https://redirect.github.com/axios/axios/issues/7022))
* [`19f9f36`](axios/axios@19f9f36) docs(readme): add custom fetch section; ([#7024](https://redirect.github.com/axios/axios/issues/7024))
* [`3cac78c`](axios/axios@3cac78c) chore(release): v1.12.1 ([#7021](https://redirect.github.com/axios/axios/issues/7021))
* [`b5f26b7`](axios/axios@b5f26b7) fix(types): fixed env config types; ([#7020](https://redirect.github.com/axios/axios/issues/7020))
* See full diff in [compare view](axios/axios@v1.12.0...v1.12.2)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=axios&package-manager=npm\_and\_yarn&previous-version=1.12.0&new-version=1.12.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
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  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)
github-actions Bot pushed a commit to tremendous-rewards/tremendous-node that referenced this pull request Sep 15, 2025
Bumps [axios](https://github.com/axios/axios) from 1.12.0 to 1.12.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/releases">axios's
releases</a>.</em></p>
<blockquote>
<h2>Release v1.12.2</h2>
<h2>Release notes:</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>fetch:</strong> use current global fetch instead of cached
one when env fetch is not specified to keep MSW support; (<a
href="https://redirect.github.com/axios/axios/issues/7030">#7030</a>)
(<a
href="https://github.com/axios/axios/commit/cf78825e1229b60d1629ad0bbc8a752ff43c3f53">cf78825</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+247/-16
([#7030](axios/axios#7030)
[#7022](axios/axios#7022)
[#7024](axios/axios#7024) )">Dmitriy
Mozgovoy</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/noritaka1166"
title="+2/-6 ([#7028](axios/axios#7028)
[#7029](axios/axios#7029) )">Noritaka
Kobayashi</a></li>
</ul>
<h2>Release v1.12.1</h2>
<h2>Release notes:</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>types:</strong> fixed env config types; (<a
href="https://redirect.github.com/axios/axios/issues/7020">#7020</a>)
(<a
href="https://github.com/axios/axios/commit/b5f26b75bdd9afa95016fb67d0cab15fc74cbf05">b5f26b7</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+10/-4
([#7020](axios/axios#7020) )">Dmitriy
Mozgovoy</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/blob/v1.x/CHANGELOG.md">axios's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/axios/axios/compare/v1.12.1...v1.12.2">1.12.2</a>
(2025-09-14)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>fetch:</strong> use current global fetch instead of cached
one when env fetch is not specified to keep MSW support; (<a
href="https://redirect.github.com/axios/axios/issues/7030">#7030</a>)
(<a
href="https://github.com/axios/axios/commit/cf78825e1229b60d1629ad0bbc8a752ff43c3f53">cf78825</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+247/-16
([#7030](axios/axios#7030)
[#7022](axios/axios#7022)
[#7024](axios/axios#7024) )">Dmitriy
Mozgovoy</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/noritaka1166"
title="+2/-6 ([#7028](axios/axios#7028)
[#7029](axios/axios#7029) )">Noritaka
Kobayashi</a></li>
</ul>
<h2><a
href="https://github.com/axios/axios/compare/v1.12.0...v1.12.1">1.12.1</a>
(2025-09-12)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>types:</strong> fixed env config types; (<a
href="https://redirect.github.com/axios/axios/issues/7020">#7020</a>)
(<a
href="https://github.com/axios/axios/commit/b5f26b75bdd9afa95016fb67d0cab15fc74cbf05">b5f26b7</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+10/-4
([#7020](axios/axios#7020) )">Dmitriy
Mozgovoy</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/axios/axios/commit/e5a33366d75b65f88052b230b103731eb7dcb793"><code>e5a3336</code></a>
chore(release): v1.12.2 (<a
href="https://redirect.github.com/axios/axios/issues/7031">#7031</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/38726c7586c6a2583b7e7dcdce0c4fedd013055d"><code>38726c7</code></a>
refactor: change if in else to else if (<a
href="https://redirect.github.com/axios/axios/issues/7028">#7028</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/cf78825e1229b60d1629ad0bbc8a752ff43c3f53"><code>cf78825</code></a>
fix(fetch): use current global fetch instead of cached one when env
fetch is ...</li>
<li><a
href="https://github.com/axios/axios/commit/c26d00f451949306f708aa78d1e9f12b9eb6ff4b"><code>c26d00f</code></a>
refactor: remove redundant assignment (<a
href="https://redirect.github.com/axios/axios/issues/7029">#7029</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/9fb41a8fcd6f698ee82175c0d9e654b4b0a7081c"><code>9fb41a8</code></a>
chore(ci): add local HTTP server for Karma tests; (<a
href="https://redirect.github.com/axios/axios/issues/7022">#7022</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/19f9f36850210511445c67c865466156d6d1dee2"><code>19f9f36</code></a>
docs(readme): add custom fetch section; (<a
href="https://redirect.github.com/axios/axios/issues/7024">#7024</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/3cac78c2de2d1d1af0c1b4753feff16c075f01d1"><code>3cac78c</code></a>
chore(release): v1.12.1 (<a
href="https://redirect.github.com/axios/axios/issues/7021">#7021</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/b5f26b75bdd9afa95016fb67d0cab15fc74cbf05"><code>b5f26b7</code></a>
fix(types): fixed env config types; (<a
href="https://redirect.github.com/axios/axios/issues/7020">#7020</a>)</li>
<li>See full diff in <a
href="https://github.com/axios/axios/compare/v1.12.0...v1.12.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios&package-manager=npm_and_yarn&previous-version=1.12.0&new-version=1.12.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants