Skip to content

Commit 8cd3a04

Browse files
chore(lambda): bump vitest from 3.2.4 to 4.0.5 in /lambdas in the vite group across 1 directory (#4853)
Bumps the vite group with 1 update in the /lambdas directory: [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Updates `vitest` from 3.2.4 to 4.0.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v4.0.5</h2> <h3>   🐞 Bug Fixes</h3> <ul> <li>Respect <code>ssr.noExternal</code> when externalizing dependencies, fix Svelte and Astro  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8862">vitest-dev/vitest#8862</a> <a href="https://github.com/vitest-dev/vitest/commit/a4f86f1ba"><!-- raw HTML omitted -->(a4f86)<!-- raw HTML omitted --></a></li> <li>Allow module in --config  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8864">vitest-dev/vitest#8864</a> <a href="https://github.com/vitest-dev/vitest/commit/b9521e0c2"><!-- raw HTML omitted -->(b9521)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: Allow <code>Locator</code> type in selectOptions element parameter  -  by <a href="https://github.com/rzzf"><code>@​rzzf</code></a> and <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8848">vitest-dev/vitest#8848</a> <a href="https://github.com/vitest-dev/vitest/commit/7ee283c96"><!-- raw HTML omitted -->(7ee28)<!-- raw HTML omitted --></a></li> <li><strong>module-runner</strong>: Don't return node builtins for <code>getBuiltins</code> unconditionally  -  by <a href="https://github.com/sapphi-red"><code>@​sapphi-red</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8863">vitest-dev/vitest#8863</a> <a href="https://github.com/vitest-dev/vitest/commit/0e858bab4"><!-- raw HTML omitted -->(0e858)<!-- raw HTML omitted --></a></li> <li><strong>pool</strong>: Rename <code>groupId</code> to <code>groupOrder</code> in error message  -  by <a href="https://github.com/Yohannfra"><code>@​Yohannfra</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8856">vitest-dev/vitest#8856</a> <a href="https://github.com/vitest-dev/vitest/commit/b9aabf4e6"><!-- raw HTML omitted -->(b9aab)<!-- raw HTML omitted --></a></li> </ul> <h3>   🏎 Performance</h3> <ul> <li>Pass testfiles at once when <code>--no-isolate --maxWorkers=1</code>  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8835">vitest-dev/vitest#8835</a> <a href="https://github.com/vitest-dev/vitest/commit/584aa7148"><!-- raw HTML omitted -->(584aa)<!-- raw HTML omitted --></a></li> <li><strong>expect</strong>: Optimize checking the input type  -  by <a href="https://github.com/Connormiha"><code>@​Connormiha</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8840">vitest-dev/vitest#8840</a> <a href="https://github.com/vitest-dev/vitest/commit/0696898b4"><!-- raw HTML omitted -->(06968)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest/compare/v4.0.4...v4.0.5">View changes on GitHub</a></h5> <h2>v4.0.4</h2> <h3>   🐞 Bug Fixes</h3> <ul> <li><strong>browser</strong>: <ul> <li>Correct typo  -  by <a href="https://github.com/benmccann"><code>@​benmccann</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8796">vitest-dev/vitest#8796</a> <a href="https://github.com/vitest-dev/vitest/commit/ede1f39d6"><!-- raw HTML omitted -->(ede1f)<!-- raw HTML omitted --></a></li> <li>Publish a missing context file for webdriverio  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8824">vitest-dev/vitest#8824</a> <a href="https://github.com/vitest-dev/vitest/commit/7c7b6f0b1"><!-- raw HTML omitted -->(7c7b6)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>mocker</strong>: <ul> <li>Support mocking builtins without <code>node:</code> prefix  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8829">vitest-dev/vitest#8829</a> <a href="https://github.com/vitest-dev/vitest/commit/06208d30b"><!-- raw HTML omitted -->(06208)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>pool</strong>: <ul> <li>Runner's error listener causing <code>MaxListenersExceededWarning</code>  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8820">vitest-dev/vitest#8820</a> <a href="https://github.com/vitest-dev/vitest/commit/d1bff3bb3"><!-- raw HTML omitted -->(d1bff)<!-- raw HTML omitted --></a></li> <li>Capture workers <code>stdio</code> to logger  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8809">vitest-dev/vitest#8809</a> <a href="https://github.com/vitest-dev/vitest/commit/fb95fc736"><!-- raw HTML omitted -->(fb95f)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Allow classes in <code>vi.mocked</code> utility  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8839">vitest-dev/vitest#8839</a> <a href="https://github.com/vitest-dev/vitest/commit/f87568d64"><!-- raw HTML omitted -->(f8756)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>worker</strong>: <ul> <li>Rpc listener leak when <code>isolate: false</code>  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8821">vitest-dev/vitest#8821</a> <a href="https://github.com/vitest-dev/vitest/commit/573dc06fe"><!-- raw HTML omitted -->(573dc)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3>   🏎 Performance</h3> <ul> <li><strong>utils</strong>: Optimized reducer to avoid creating new objects  -  by <a href="https://github.com/Connormiha"><code>@​Connormiha</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8818">vitest-dev/vitest#8818</a> <a href="https://github.com/vitest-dev/vitest/commit/d19cece3a"><!-- raw HTML omitted -->(d19ce)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest/compare/v4.0.3...v4.0.4">View changes on GitHub</a></h5> <h2>v4.0.3</h2> <h3>   🐞 Bug Fixes</h3> <ul> <li>Preserve reporter options from config when CLI reporters override them  -  by <a href="https://github.com/Copilot"><code>@​Copilot</code></a> and <strong>sheremet-va</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8794">vitest-dev/vitest#8794</a> <a href="https://github.com/vitest-dev/vitest/commit/155521a85"><!-- raw HTML omitted -->(15552)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: More stable in-source testing validation  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8793">vitest-dev/vitest#8793</a> <a href="https://github.com/vitest-dev/vitest/commit/622977e61"><!-- raw HTML omitted -->(62297)<!-- raw HTML omitted --></a></li> <li><strong>happy-dom</strong>: Support fetch globals  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8791">vitest-dev/vitest#8791</a> <a href="https://github.com/vitest-dev/vitest/commit/0fb74bd3b"><!-- raw HTML omitted -->(0fb74)<!-- raw HTML omitted --></a></li> <li><strong>init</strong>: Use correct jsx/tsx extension  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/8792">vitest-dev/vitest#8792</a> <a href="https://github.com/vitest-dev/vitest/commit/abc046f95"><!-- raw HTML omitted -->(abc04)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest/compare/v4.0.2...v4.0.3">View changes on GitHub</a></h5> <h2>v4.0.2</h2> <h3>   🐞 Bug Fixes</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/ed9fc71076f94f23320922f115e37bc9a84b6dbb"><code>ed9fc71</code></a> chore: release v4.0.5</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b9521e0c2dfa30860d96ffb694a1b7d4214deb57"><code>b9521e0</code></a> fix: allow module in --config (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8864">#8864</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0e858bab4317a76b7366618320301920fffdf60a"><code>0e858ba</code></a> fix(module-runner): don't return node builtins for <code>getBuiltins</code> unconditiona...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a4f86f1ba44141d3256e2563a47b0b4dedd462e4"><code>a4f86f1</code></a> fix: respect <code>ssr.noExternal</code> when externalizing dependencies (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8862">#8862</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b9aabf4e6664f6d6a8b4332833cb111b38536049"><code>b9aabf4</code></a> fix(pool): rename <code>groupId</code> to <code>groupOrder</code> in error message (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8856">#8856</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/584aa7148dedf157684377a3af8aea86eb179603"><code>584aa71</code></a> perf: pass testfiles at once when <code>--no-isolate --maxWorkers=1</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8835">#8835</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9b75ec5f2fa46daaaa649493eb7f643a1cc9f51a"><code>9b75ec5</code></a> chore: release v4.0.4</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fb95fc7360de6cc69c7d7cfe88b4c1c1dbc28338"><code>fb95fc7</code></a> fix(pool): capture workers <code>stdio</code> to logger (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8809">#8809</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/06208d30bb03d5bb49b88789cef892616f7e6591"><code>06208d3</code></a> fix(mocker): support mocking builtins without <code>node:</code> prefix (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8829">#8829</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/573dc06fec6a5753571866984771f9c32b80da3a"><code>573dc06</code></a> fix(worker): rpc listener leak when <code>isolate: false</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/8821">#8821</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v4.0.5/packages/vitest">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by [GitHub Actions](<a href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a> Actions), a new releaser for vitest since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vitest&package-manager=npm_and_yarn&previous-version=3.2.4&new-version=4.0.5)](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 <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niek Palm <niek.palm@philips.com>
1 parent d6c99ce commit 8cd3a04

File tree

9 files changed

+191
-303
lines changed

9 files changed

+191
-303
lines changed

lambdas/functions/control-plane/src/github/octokit.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ vi.mock('../github/auth', async () => ({
1919
}));
2020

2121
vi.mock('@octokit/rest', async () => ({
22-
Octokit: vi.fn().mockImplementation(() => mockOctokit),
22+
Octokit: vi.fn().mockImplementation(function () {
23+
return mockOctokit;
24+
}),
2325
}));
2426

2527
// We've already mocked '../github/auth' above

lambdas/functions/control-plane/src/pool/pool.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const mockOctokit = {
2020
};
2121

2222
vi.mock('@octokit/rest', () => ({
23-
Octokit: vi.fn().mockImplementation(() => mockOctokit),
23+
Octokit: vi.fn().mockImplementation(function () {
24+
return mockOctokit;
25+
}),
2426
}));
2527

2628
vi.mock('./../aws/runners', async () => ({

lambdas/functions/control-plane/src/scale-runners/job-retry.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ const mockOctokit = {
4242
};
4343

4444
vi.mock('@octokit/rest', async () => ({
45-
Octokit: vi.fn().mockImplementation(() => mockOctokit),
45+
Octokit: vi.fn().mockImplementation(function () {
46+
return mockOctokit;
47+
}),
4648
}));
4749
vi.mock('../github/octokit', async () => ({
4850
getOctokit: vi.fn(),

lambdas/functions/control-plane/src/scale-runners/scale-down.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const mockOctokit = {
2626
paginate: vi.fn(),
2727
};
2828
vi.mock('@octokit/rest', () => ({
29-
Octokit: vi.fn().mockImplementation(() => mockOctokit),
29+
Octokit: vi.fn().mockImplementation(function () {
30+
return mockOctokit;
31+
}),
3032
}));
3133

3234
vi.mock('./../aws/runners', async (importOriginal) => {

lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ const mockSSMClient = mockClient(SSMClient);
3535
const mockSSMgetParameter = vi.mocked(getParameter);
3636

3737
vi.mock('@octokit/rest', () => ({
38-
Octokit: vi.fn().mockImplementation(() => mockOctokit),
38+
Octokit: vi.fn().mockImplementation(function () {
39+
return mockOctokit;
40+
}),
3941
}));
4042

4143
vi.mock('./../aws/runners', async () => ({

lambdas/functions/gh-agent-syncer/src/syncer/syncer.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const mockOctokit = {
1515
},
1616
};
1717
vi.mock('@octokit/rest', async () => ({
18-
Octokit: vi.fn().mockImplementation(() => mockOctokit),
18+
Octokit: vi.fn().mockImplementation(function () {
19+
return mockOctokit;
20+
}),
1921
}));
2022

2123
// mock stream for Axios

lambdas/functions/webhook/src/sqs/index.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const mockSQS = {
88
}),
99
};
1010
vi.mock('@aws-sdk/client-sqs', () => ({
11-
SQS: vi.fn().mockImplementation(() => mockSQS),
11+
SQS: vi.fn().mockImplementation(function () {
12+
return mockSQS;
13+
}),
1214
}));
1315
vi.mock('@aws-github-runner/aws-ssm-util');
1416

lambdas/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
3535
"@typescript-eslint/eslint-plugin": "^8.46.0",
3636
"@typescript-eslint/parser": "^8.46.1",
37-
"@vitest/coverage-v8": "^3.2.4",
37+
"@vitest/coverage-v8": "^4.0.5",
3838
"chalk": "^5.6.2",
3939
"eslint": "^9.38.0",
4040
"eslint-plugin-prettier": "5.5.4",
@@ -44,7 +44,7 @@
4444
"ts-node-dev": "^2.0.0",
4545
"typescript": "^5.9.3",
4646
"vite": "^7.1.11",
47-
"vitest": "^3.2.4"
47+
"vitest": "^4.0.5"
4848
},
4949
"packageManager": "yarn@4.3.1"
5050
}

0 commit comments

Comments
 (0)