Skip to content

The open-source app everyone uses to manage agents at work

build(deps-dev): bump vitest from 4.1.11 to 5.0.3 (#12969)

dependabot[bot]854af7df19c4
diff --git a/package.json b/package.json
index a54a7f4456..716ad88c39 100644
--- a/package.json
+++ b/package.json
@@ -99,7 +99,7 @@
"cross-env": "^10.1.0",
"esbuild": "^0.28.2",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/adapters/hermes-gateway/package.json b/packages/adapters/hermes-gateway/package.json
index 71f3c206a2..f7e4346b5c 100644
--- a/packages/adapters/hermes-gateway/package.json
+++ b/packages/adapters/hermes-gateway/package.json
@@ -73,7 +73,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/adapters/hermes/package.json b/packages/adapters/hermes/package.json
index b097155e62..c0b24626e6 100644
--- a/packages/adapters/hermes/package.json
+++ b/packages/adapters/hermes/package.json
@@ -105,7 +105,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/db/package.json b/packages/db/package.json
index 573c1afac7..b942944cb4 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -58,7 +58,7 @@
"drizzle-kit": "^0.31.10",
"tsx": "^4.23.15",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/google-sheets-mcp-server/package.json b/packages/google-sheets-mcp-server/package.json
index e875c770e5..ff51871fe1 100644
--- a/packages/google-sheets-mcp-server/package.json
+++ b/packages/google-sheets-mcp-server/package.json
@@ -52,7 +52,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/kv-demo-mcp-server/package.json b/packages/kv-demo-mcp-server/package.json
index 62fa36df95..4748badd50 100644
--- a/packages/kv-demo-mcp-server/package.json
+++ b/packages/kv-demo-mcp-server/package.json
@@ -50,7 +50,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json
index dd4aea8e06..5af1dc180d 100644
--- a/packages/mcp-server/package.json
+++ b/packages/mcp-server/package.json
@@ -50,7 +50,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/paperclip-runner/package.json b/packages/paperclip-runner/package.json
index f6990e3ca4..86e33d2556 100644
--- a/packages/paperclip-runner/package.json
+++ b/packages/paperclip-runner/package.json
@@ -199,6 +199,6 @@
"tsx": "^4.23.15",
"typescript": "^7.0.2",
"vite": "^6.1.0",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
}
}
diff --git a/packages/paperclip-runner/src/drivers/codex/codex-protocol-cleanup.test.ts b/packages/paperclip-runner/src/drivers/codex/codex-protocol-cleanup.test.ts
index 11b5d34a8a..8c5a4fa942 100644
--- a/packages/paperclip-runner/src/drivers/codex/codex-protocol-cleanup.test.ts
+++ b/packages/paperclip-runner/src/drivers/codex/codex-protocol-cleanup.test.ts
@@ -1,6 +1,9 @@
import { execFileSync } from "node:child_process";
+import { createRequire } from "node:module";
import { describe, expect, it } from "vitest";
+const resolveTsxLoader = createRequire(import.meta.url).resolve("tsx");
+
describe("protocol-failure cleanup", () => {
it.each(["immediate", "delayed", "successful"])(
"contains %s background cleanup without hiding its outcome from the owner",
@@ -54,7 +57,7 @@ describe("protocol-failure cleanup", () => {
process.stdout.write("HOST_ALIVE_CLEANUP_OUTCOME_PRESERVED");
`;
expect(execFileSync(process.execPath, [
- "--unhandled-rejections=strict", "--import", import.meta.resolve("tsx"),
+ "--unhandled-rejections=strict", "--import", resolveTsxLoader,
"--input-type=module", "--eval", source,
], { encoding: "utf8", timeout: 10_000 })).toBe("HOST_ALIVE_CLEANUP_OUTCOME_PRESERVED");
},
diff --git a/packages/plugins/examples/plugin-authoring-smoke-example/package.json b/packages/plugins/examples/plugin-authoring-smoke-example/package.json
index 3a97b9d64d..60cbdb38c6 100644
--- a/packages/plugins/examples/plugin-authoring-smoke-example/package.json
+++ b/packages/plugins/examples/plugin-authoring-smoke-example/package.json
@@ -37,7 +37,7 @@
"rollup": "^4.63.1",
"tslib": "^2.8.1",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"peerDependencies": {
"react": ">=18"
diff --git a/packages/plugins/examples/plugin-orchestration-smoke-example/package.json b/packages/plugins/examples/plugin-orchestration-smoke-example/package.json
index 0fe28e7d49..6aedf60c3c 100644
--- a/packages/plugins/examples/plugin-orchestration-smoke-example/package.json
+++ b/packages/plugins/examples/plugin-orchestration-smoke-example/package.json
@@ -38,7 +38,7 @@
"rollup": "^4.63.1",
"tslib": "^2.8.1",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"peerDependencies": {
"react": ">=18"
diff --git a/packages/plugins/paperclip-plugin-fake-sandbox/package.json b/packages/plugins/paperclip-plugin-fake-sandbox/package.json
index 34999b0afc..be73dd967f 100644
--- a/packages/plugins/paperclip-plugin-fake-sandbox/package.json
+++ b/packages/plugins/paperclip-plugin-fake-sandbox/package.json
@@ -24,7 +24,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/packages/plugins/plugin-llm-wiki/package.json b/packages/plugins/plugin-llm-wiki/package.json
index 35eae7d721..10f978601b 100644
--- a/packages/plugins/plugin-llm-wiki/package.json
+++ b/packages/plugins/plugin-llm-wiki/package.json
@@ -47,7 +47,7 @@
"rollup": "^4.63.1",
"tslib": "^2.8.1",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"peerDependencies": {
"react": ">=18"
diff --git a/packages/plugins/plugin-workspace-diff/package.json b/packages/plugins/plugin-workspace-diff/package.json
index ec6681e97d..fd671e8b28 100644
--- a/packages/plugins/plugin-workspace-diff/package.json
+++ b/packages/plugins/plugin-workspace-diff/package.json
@@ -62,7 +62,7 @@
"react": "^19.2.8",
"react-dom": "^19.2.8",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"peerDependencies": {
"react": ">=18",
diff --git a/packages/tailscale-https-broker/package.json b/packages/tailscale-https-broker/package.json
index 9b4d42978e..59d657115d 100644
--- a/packages/tailscale-https-broker/package.json
+++ b/packages/tailscale-https-broker/package.json
@@ -20,7 +20,7 @@
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b8691c8ffc..858fdb97f3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -72,8 +72,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
cli:
dependencies:
@@ -303,8 +303,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/adapters/hermes-gateway:
dependencies:
@@ -319,8 +319,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/adapters/kimi-local:
dependencies:
@@ -420,8 +420,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/google-sheets-mcp-server:
dependencies:
@@ -442,8 +442,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/kv-demo-mcp-server:
dependencies:
@@ -461,8 +461,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/mcp-server:
dependencies:
@@ -483,8 +483,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/paperclip-eval-kernel:
devDependencies:
@@ -565,8 +565,8 @@ importers:
specifier: ^6.1.0
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/plugins/create-paperclip-plugin:
dependencies:
@@ -612,8 +612,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/plugins/examples/plugin-file-browser-example:
dependencies:
@@ -730,8 +730,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/plugins/plugin-llm-wiki:
devDependencies:
@@ -769,8 +769,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/plugins/plugin-workspace-diff:
dependencies:
@@ -803,8 +803,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/plugins/sdk:
dependencies:
@@ -863,8 +863,8 @@ importers:
specifier: ^7.0.2
version: 7.0.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages/teams-catalog:
devDependencies:
@@ -954,7 +954,7 @@ importers:
'@vercel/connect':
specifier: 2.3.3
acorn:
specifier: 8.18.0
version: 8.18.0
@@ -969,7 +969,7 @@ importers:
version: 3.0.1([email protected])
better-auth:
specifier: 1.7.2
chat:
specifier: 4.39.0
version: 4.39.0([email protected])
@@ -1083,8 +1083,8 @@ importers:
specifier: ^8.2.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
ui:
dependencies:
@@ -1261,8 +1261,8 @@ importers:
specifier: ^8.2.2
vitest:
- specifier: ^4.1.11
+ specifier: ^5.0.3
packages:
@@ -5447,11 +5447,8 @@ packages:
'@vitest/[email protected]':
resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-T8sWAIbkSyAjkwTcaEc3Iu0o9A27X1/kdXrizhZkGuSKScRQtRzclfAMpOTcGdXCsqxeWlpGy3XjqaW8CpLORg==}
peerDependencies:
msw: ^2.4.9
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -5464,27 +5461,15 @@ packages:
'@vitest/[email protected]':
resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==}
-
'@vitest/[email protected]':
resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-XhFysQTB8AZ+P4gMi+Lpo99vg2AZi0qKpaB9yXQl37+CaMEAPO3iH/wGVnSyL5MPERiLezpqTVtrR6UZH5GCXg==}
'@vitest/[email protected]':
resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==}
-
'@vladfrangu/[email protected]':
resolution: {integrity: sha512-Xfe6rpCTxSxfbswi/W/Pz7zp1WWSNn4A0eW4mLkQUewCrXXtMj31lCg+iQyTkh/CkusZSq9eDflu7tjEDXUY6g==}
engines: {node: '>=v14.0.0', npm: '>=7.0.0'}
@@ -5847,8 +5832,8 @@ packages:
resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}
+ resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==}
engines: {node: '>=18'}
@@ -7258,6 +7243,9 @@ packages:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+ resolution: {integrity: sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==}
+
resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}
@@ -7589,8 +7577,8 @@ packages:
resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==}
+ resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==}
engines: {node: '>=12.20.0'}
@@ -7749,9 +7737,6 @@ packages:
resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==}
- resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
-
resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}
engines: {node: '>= 14.16'}
@@ -8265,9 +8250,6 @@ packages:
resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
-
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
@@ -8313,9 +8295,6 @@ packages:
resolution: {integrity: sha512-wPldCk3asibAjQ/kziWQQt1Wh3PgDFpC0XpwclzKcdT1vql6KeYxf5LIt4nlFkUeR8WuphYMKqUA56X4rjbfgQ==}
engines: {node: '>=10.16.0'}
- resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
-
resolution: {integrity: sha512-bCbX9ZEyFkWPsRz7Bl3NuQUJohmwGSev/yhr7vhaGPlc4AfIrspIRa6cPTBuI1ItmrTDJ4d/S2hCsfe4+vQGnQ==}
@@ -8323,8 +8302,8 @@ packages:
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
engines: {node: '>= 0.8'}
- resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==}
+ resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
resolution: {integrity: sha512-H48X6AURAFTpfN2zEux6vNesee5Oq8Gxj1IanYmblPZ218sfKSeyyerF1NC7GD7BrruoC8L4/cU0zII4y+d6zw==}
@@ -8444,8 +8423,9 @@ packages:
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
- resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
+ resolution: {integrity: sha512-78U2TlB2CnVenajOFzf3BKSm0J6oz5L0NV7g32LCPccvYc0lbWvys4d3uUUCS2B1N8PAf2+aekR8i1KbC3HO7Q==}
+ engines: {node: '>=20.0.0'}
resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}
@@ -8459,10 +8439,6 @@ packages:
resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}
engines: {node: '>=14.0.0'}
- resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==}
- engines: {node: '>=14.0.0'}
-
resolution: {integrity: sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==}
engines: {node: '>=14.0.0'}
@@ -8775,22 +8751,23 @@ packages:
yaml:
optional: true
- resolution: {integrity: sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==}
- engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
+ resolution: {integrity: sha512-xMw97S3rjdtj5dkVat7jCsqWBpvchs3RlpQctUqwJD0KkERk40vz2fJ77lDwW/Vzh/pk18eItYAzkodhSes3jQ==}
+ engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@opentelemetry/api': ^1.9.0
- '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
- '@vitest/browser-playwright': 4.1.11
- '@vitest/browser-preview': 4.1.11
- '@vitest/browser-webdriverio': 4.1.11
- '@vitest/coverage-istanbul': 4.1.11
- '@vitest/coverage-v8': 4.1.11
- '@vitest/ui': 4.1.11
+ '@types/node': ^22.0.0 || >=24.0.0
+ '@vitest/browser-playwright': 5.0.3
+ '@vitest/browser-preview': 5.0.3
+ '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
+ '@vitest/coverage-istanbul': 5.0.3
+ '@vitest/coverage-v8': 5.0.3
+ '@vitest/ui': 5.0.3
happy-dom: '*'
jsdom: '*'
+ vite: ^6.4.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
@@ -8854,9 +8831,9 @@ packages:
engines: {node: '>= 8'}
hasBin: true
- resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
- engines: {node: '>=8'}
+ resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==}
+ engines: {node: '>=20.11'}
hasBin: true
@@ -13199,13 +13176,13 @@ snapshots:
dependencies:
execa: 5.1.1
dependencies:
'@vercel/oidc': 3.8.9
optionalDependencies:
'@chat-adapter/slack': 4.39.0(patch_hash=226jj24akljccsfbw7bcxujz4u)([email protected])
'@modelcontextprotocol/sdk': 1.30.0([email protected])
'@vercel/[email protected]':
dependencies:
@@ -13238,20 +13215,21 @@ snapshots:
chai: 5.3.3
tinyrainbow: 2.0.0
- '@vitest/[email protected]':
dependencies:
- '@standard-schema/spec': 1.1.0
- '@types/chai': 5.2.3
- '@vitest/spy': 4.1.11
- '@vitest/utils': 4.1.11
- chai: 6.2.2
- tinyrainbow: 3.1.1
+ '@jridgewell/trace-mapping': 0.3.31
+ '@vitest/spy': 5.0.3
+ estree-walker: 3.0.3
+ magic-string: 1.4.3
+ optionalDependencies:
dependencies:
- '@vitest/spy': 4.1.11
+ '@jridgewell/trace-mapping': 0.3.31
+ '@vitest/spy': 5.0.3
estree-walker: 3.0.3
- magic-string: 0.30.21
+ magic-string: 1.4.3
optionalDependencies:
@@ -13259,27 +13237,11 @@ snapshots:
dependencies:
tinyrainbow: 2.0.0
- '@vitest/[email protected]':
- dependencies:
- tinyrainbow: 3.1.1
-
- '@vitest/[email protected]':
- dependencies:
- '@vitest/utils': 4.1.11
- pathe: 2.0.3
-
- '@vitest/[email protected]':
- dependencies:
- '@vitest/pretty-format': 4.1.11
- '@vitest/utils': 4.1.11
- magic-string: 0.30.21
- pathe: 2.0.3
-
'@vitest/[email protected]':
dependencies:
tinyspy: 4.0.6
- '@vitest/[email protected]': {}
+ '@vitest/[email protected]': {}
'@vitest/[email protected]':
dependencies:
@@ -13287,12 +13249,6 @@ snapshots:
loupe: 3.2.1
tinyrainbow: 2.0.0
- '@vitest/[email protected]':
- dependencies:
- '@vitest/pretty-format': 4.1.11
- convert-source-map: 2.0.0
- tinyrainbow: 3.1.1
-
'@vladfrangu/[email protected]': {}
'@webcontainer/[email protected]': {}
@@ -13481,7 +13437,7 @@ snapshots:
dependencies:
'@better-auth/drizzle-adapter': 1.7.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@opentelemetry/[email protected])([email protected])([email protected])([email protected](patch_hash=sryle6qd5qfmnxvoebal4gashi)))
@@ -13506,7 +13462,7 @@ snapshots:
pg: 8.18.0
react: 19.2.8
react-dom: 19.2.8([email protected])
transitivePeerDependencies:
- '@cloudflare/workers-types'
- '@opentelemetry/api'
@@ -13593,7 +13549,7 @@ snapshots:
loupe: 3.2.1
pathval: 2.0.1
@@ -14975,6 +14931,10 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+
@@ -15591,7 +15551,7 @@ snapshots:
@@ -15787,8 +15747,6 @@ snapshots:
-
@@ -16489,8 +16447,6 @@ snapshots:
side-channel-map: 1.0.1
side-channel-weakmap: 1.0.2
-
@@ -16540,8 +16496,6 @@ snapshots:
cpu-features: 0.0.10
nan: 2.28.0
-
dependencies:
'@stablelib/base64': 1.0.1
@@ -16549,7 +16503,7 @@ snapshots:
dependencies:
@@ -16704,7 +16658,7 @@ snapshots:
@@ -16715,8 +16669,6 @@ snapshots:
-
@@ -16976,45 +16928,51 @@ snapshots:
jiti: 2.7.0
tsx: 4.23.15
dependencies:
- '@vitest/expect': 4.1.11
- '@vitest/pretty-format': 4.1.11
- '@vitest/runner': 4.1.11
- '@vitest/snapshot': 4.1.11
- '@vitest/spy': 4.1.11
- '@vitest/utils': 4.1.11
+ '@types/chai': 5.2.3
+ chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
- magic-string: 0.30.21
- obug: 2.1.4
- pathe: 2.0.3
+ magic-string: 1.4.3
+ obug: 2.2.1
+ picomatch: 4.0.7
+ std-env: 4.3.0
+ tinybench: 6.2.0
+ tinyexec: 1.3.1
+ tinyglobby: 0.2.17
+ why-is-node-running: 3.2.1
+ optionalDependencies:
+ '@opentelemetry/api': 1.9.1
+ '@types/node': 24.13.3
+ jsdom: 30.0.1(@noble/[email protected])
+ transitivePeerDependencies:
+ - msw
+
+ dependencies:
+ '@types/chai': 5.2.3
+ chai: 6.3.0
+ es-module-lexer: 2.3.2
+ expect-type: 1.4.0
+ magic-string: 1.4.3
+ obug: 2.2.1
picomatch: 4.0.7
- std-env: 4.2.0
- tinybench: 2.9.0
+ std-env: 4.3.0
+ tinybench: 6.2.0
tinyexec: 1.3.1
tinyglobby: 0.2.17
- tinyrainbow: 3.1.1
- why-is-node-running: 2.3.0
+ why-is-node-running: 3.2.1
optionalDependencies:
'@opentelemetry/api': 1.9.1
'@types/node': 24.13.3
jsdom: 30.0.1(@noble/[email protected])
transitivePeerDependencies:
- - '@vitejs/devtools'
- - esbuild
- - jiti
- - less
- msw
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - terser
- - tsx
- - yaml
@@ -17052,10 +17010,7 @@ snapshots:
dependencies:
isexe: 2.0.0
- dependencies:
- siginfo: 2.0.0
- stackback: 0.0.2
dependencies:
diff --git a/scripts/run-vitest-stable.mjs b/scripts/run-vitest-stable.mjs
index d98a814a12..3a9c12f477 100644
--- a/scripts/run-vitest-stable.mjs
+++ b/scripts/run-vitest-stable.mjs
@@ -132,6 +132,37 @@ function toServerPath(file) {
return path.relative(serverRoot, file).split(path.sep).join("/");
}
+// For a multi-line `it.each([...])("name", fn)` call, Vitest 5's `vitest
+// list --includeTaskLocation` and `vitest run <file>:<line>` disagree about
+// which line registers the test: `list` reports (and only matches) the line
+// of the wrapped "name" argument, while `run` only matches the line above
+// it, where Prettier's formatting puts that call's opening `(`. Separately,
+// on this file `list` also occasionally invents an entry whose "location"
+// sits on an ordinary body statement that merely ends in `)(` or starts a
+// line with a quote, with no `it`/`test` call anywhere nearby — a bogus
+// artifact of the same collector, not a real test. Both only showed up on
+// server/src/__tests__/chat-channels.integration.test.ts, a 70,000+ line
+// fixture; smaller files have not reproduced either issue.
+//
+// chatSuiteRunLine classifies a `list`-reported line against the actual
+// source and returns the line `vitest run` accepts, or null if the line
+// does not belong to any real `it`/`test` call (a bogus entry to drop).
+const callAnywherePattern = /(?:^|[^\w$])(?:it|test)(?:\.(?:each|skip|only))?\(/;
+const inlineCallPattern = /\)\(\s*["'`]/;
+
+function chatSuiteRunLine(sourceLines, line) {
+ const text = (sourceLines[line - 1] ?? "").trim();
+ if (callAnywherePattern.test(text) || text.endsWith(")(") || inlineCallPattern.test(text)) {
+ return line;
+ }
+ const previous = (sourceLines[line - 2] ?? "").trim();
+ const isNameArgument = text.startsWith('"') || text.startsWith("'") || text.startsWith("`");
+ if (isNameArgument && previous.endsWith(")(")) {
+ return line - 1;
+ }
+ return null;
+}
+
function isRouteOrAuthzTest(file) {
if (routeTestPattern.test(file)) {
return true;
@@ -324,6 +355,8 @@ function runVitest(args, label, testShard = null) {
mkdirSync(env.PAPERCLIP_HOME, { recursive: true });
mkdirSync(env.TMPDIR, { recursive: true });
if (testShard) {
+ const file = path.resolve(repoRoot, chatSuite);
+ const sourceLines = readFileSync(file, "utf8").split("\n");
const collect = (filters, name) => {
const output = path.join(testRoot, `${name}.json`);
const result = spawnSync("pnpm", ["exec", "vitest", "list", ...sourceOnlyVitestArgs,
@@ -333,14 +366,28 @@ function runVitest(args, label, testShard = null) {
if (result.error || result.status !== 0) fail(`Vitest collection failed: ${result.error?.message ?? result.status}`);
return JSON.parse(readFileSync(output, "utf8"));
};
- const collected = collect(args, "all");
- const file = path.resolve(repoRoot, chatSuite);
+ const allCollected = collect(args, "all");
+ const collected = [];
+ const bogusCollected = [];
+ for (const test of allCollected) {
+ (chatSuiteRunLine(sourceLines, test.location.line) === null ? bogusCollected : collected).push(test);
+ }
+ if (bogusCollected.length > 0) {
+ console.warn(
+ `[test:run] dropping ${bogusCollected.length} bogus Vitest collection entr${bogusCollected.length === 1 ? "y" : "ies"} with no matching it()/test() call: ${bogusCollected.map((test) => `${test.location.line}:${JSON.stringify(test.name)}`).join(", ")}`,
+ );
+ }
const selected = partitionTestLines(collected, testShard.count, file)[testShard.index];
- const filters = selected.lines.map((line) => `${chatSuite}:${line}`);
- args = [...args.filter((arg) => arg !== chatSuite), ...filters];
- assertSelectedTests(selected.tests, collect(args, "selected"), file);
+ // Validate shard membership with the same `list`-reported lines that
+ // produced `selected`, then switch to the `run`-compatible lines only for
+ // the filters handed to the real `vitest run` below (see
+ // chatSuiteRunLine).
+ const validationFilters = selected.lines.map((line) => `${chatSuite}:${line}`);
+ const validationArgs = [...args.filter((arg) => arg !== chatSuite), ...validationFilters];
+ assertSelectedTests(selected.tests, collect(validationArgs, "selected"), file);
console.log(`[test:run] chat shard ${testShard.index + 1}/${testShard.count}: ${selected.tests.length}/${collected.length} tests, ${selected.lines.length} source lines; exact filter coverage verified`);
- args.push("--allowOnly=false");
+ const runFilters = selected.lines.map((line) => `${chatSuite}:${chatSuiteRunLine(sourceLines, line)}`);
+ args = [...args.filter((arg) => arg !== chatSuite), ...runFilters, "--allowOnly=false"];
}
const result = spawnSync("pnpm", ["exec", "vitest", "run", ...sourceOnlyVitestArgs, ...args], {
cwd: repoRoot,
diff --git a/server/package.json b/server/package.json
index 9a76e47b42..591903e87c 100644
--- a/server/package.json
+++ b/server/package.json
@@ -126,7 +126,7 @@
"tsx": "^4.23.15",
"typescript": "^7.0.2",
"vite": "^8.2.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"peerDependencies": {
"@opentelemetry/auto-instrumentations-node": "0.79.0",
diff --git a/server/src/__tests__/cli-auth-routes.test.ts b/server/src/__tests__/cli-auth-routes.test.ts
index 0b30c35856..518adc8347 100644
--- a/server/src/__tests__/cli-auth-routes.test.ts
+++ b/server/src/__tests__/cli-auth-routes.test.ts
@@ -101,7 +101,7 @@ describe("cli auth routes", () => {
vi.resetAllMocks();
});
- it.sequential("creates a CLI auth challenge with approval metadata", async () => {
+ it("creates a CLI auth challenge with approval metadata", async () => {
mockBoardAuthService.createCliAuthChallenge.mockResolvedValue({
challenge: {
id: "12345678-1234-4123-8123-123456789abc",
@@ -132,7 +132,7 @@ describe("cli auth routes", () => {
expect(res.body.approvalUrl).toContain("/cli-auth/12345678-1234-4123-8123-123456789abc?token=pcp_cli_auth_secret");
});
- it.sequential("rejects anonymous access to generic skill documents", async () => {
+ it("rejects anonymous access to generic skill documents", async () => {
const indexApp = await createApp({ type: "none", source: "none" });
const skillApp = await createApp({ type: "none", source: "none" });
@@ -143,7 +143,7 @@ describe("cli auth routes", () => {
expect(skillRes.status, skillRes.text || JSON.stringify(skillRes.body)).toBe(401);
});
- it.sequential("serves the invite-scoped paperclip skill anonymously for active invites", async () => {
+ it("serves the invite-scoped paperclip skill anonymously for active invites", async () => {
const invite = {
id: "invite-1",
companyId: "company-1",
@@ -174,7 +174,7 @@ describe("cli auth routes", () => {
expect(res.text).toContain("# Paperclip Skill");
});
- it.sequential("marks challenge status as requiring sign-in for anonymous viewers", async () => {
+ it("marks challenge status as requiring sign-in for anonymous viewers", async () => {
mockBoardAuthService.describeCliAuthChallenge.mockResolvedValue({
id: "12345678-1234-4123-8123-123456789abc",
status: "pending",
@@ -261,7 +261,7 @@ describe("cli auth routes", () => {
expect(mockBoardAuthService.cancelCliAuthChallenge).toHaveBeenCalledWith(id, "pcp_cli_auth_secret");
});
- it.sequential("approves a CLI auth challenge for a signed-in board user", async () => {
+ it("approves a CLI auth challenge for a signed-in board user", async () => {
mockBoardAuthService.approveCliAuthChallenge.mockResolvedValue({
status: "approved",
challenge: {
@@ -306,7 +306,7 @@ describe("cli auth routes", () => {
);
});
- it.sequential("logs approve activity for instance admins without company memberships", async () => {
+ it("logs approve activity for instance admins without company memberships", async () => {
mockBoardAuthService.approveCliAuthChallenge.mockResolvedValue({
status: "approved",
challenge: {
@@ -339,7 +339,7 @@ describe("cli auth routes", () => {
expect(mockLogActivity).toHaveBeenCalledTimes(2);
});
- it.sequential("logs revoke activity with resolved audit company ids", async () => {
+ it("logs revoke activity with resolved audit company ids", async () => {
mockBoardAuthService.assertCurrentBoardKey.mockResolvedValue({
id: "board-key-3",
userId: "admin-2",
@@ -370,7 +370,7 @@ describe("cli auth routes", () => {
);
});
- it.sequential("creates a named board API key and logs audit activity", async () => {
+ it("creates a named board API key and logs audit activity", async () => {
mockBoardAuthService.createNamedBoardApiKey.mockResolvedValue({
id: "board-key-4",
name: "external-admin",
@@ -419,7 +419,7 @@ describe("cli auth routes", () => {
);
});
- it.sequential("lists and revokes named board API keys for the current board user", async () => {
+ it("lists and revokes named board API keys for the current board user", async () => {
const keyId = "55555555-5555-4555-8555-555555555555";
mockBoardAuthService.listBoardApiKeys.mockResolvedValue([
{
@@ -471,7 +471,7 @@ describe("cli auth routes", () => {
);
});
- it.sequential("rejects malformed board API key IDs before database lookup", async () => {
+ it("rejects malformed board API key IDs before database lookup", async () => {
const app = await createApp({
type: "board",
userId: "user-1",
diff --git a/server/src/__tests__/company-portability-routes.test.ts b/server/src/__tests__/company-portability-routes.test.ts
index bea8460088..bf01cb22b2 100644
--- a/server/src/__tests__/company-portability-routes.test.ts
+++ b/server/src/__tests__/company-portability-routes.test.ts
@@ -361,7 +361,7 @@ describe("company portability routes", () => {
});
});
- it.sequential("rejects non-CEO agents from CEO-safe export preview routes", async () => {
+ it("rejects non-CEO agents from CEO-safe export preview routes", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -379,7 +379,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewExport).not.toHaveBeenCalled();
});
- it.sequential("rejects non-CEO export preview callers before validating request shape", async () => {
+ it("rejects non-CEO export preview callers before validating request shape", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -397,7 +397,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewExport).not.toHaveBeenCalled();
});
- it.sequential("rejects non-CEO agents from legacy and CEO-safe export bundle routes", async () => {
+ it("rejects non-CEO agents from legacy and CEO-safe export bundle routes", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -415,7 +415,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.exportBundle).not.toHaveBeenCalled();
});
- it.sequential("allows CEO agents to use company-scoped export preview routes", async () => {
+ it("allows CEO agents to use company-scoped export preview routes", async () => {
mockCompanyPortabilityService.previewExport.mockResolvedValue({
rootPath: "paperclip",
manifest: { agents: [], skills: [], projects: [], issues: [], envInputs: [], includes: { company: true, agents: true, projects: true, issues: false, skills: false }, company: null, schemaVersion: 1, generatedAt: new Date().toISOString(), source: null },
@@ -441,7 +441,7 @@ describe("company portability routes", () => {
expect(res.body.rootPath).toBe("paperclip");
});
- it.sequential("allows CEO agents to export through legacy and CEO-safe bundle routes", async () => {
+ it("allows CEO agents to export through legacy and CEO-safe bundle routes", async () => {
mockCompanyPortabilityService.exportBundle.mockResolvedValue(createExportResult());
const app = await createApp({
type: "agent",
@@ -472,7 +472,7 @@ describe("company portability routes", () => {
);
});
- it.sequential("allows board users to export through legacy and CEO-safe bundle routes", async () => {
+ it("allows board users to export through legacy and CEO-safe bundle routes", async () => {
mockCompanyPortabilityService.exportBundle.mockResolvedValue(createExportResult());
const app = await createApp({
type: "board",
@@ -491,7 +491,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.exportBundle).toHaveBeenCalledTimes(2);
});
- it.sequential("requires instance-admin access when a company export includes external instructions", async () => {
+ it("requires instance-admin access when a company export includes external instructions", async () => {
mockAgentService.list.mockResolvedValue([{
id: "external-agent",
companyId,
@@ -535,7 +535,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewExport).not.toHaveBeenCalled();
});
- it.sequential("allows an instance admin to export companies with external instructions", async () => {
+ it("allows an instance admin to export companies with external instructions", async () => {
mockAgentService.list.mockResolvedValue([{
id: "external-agent",
companyId,
@@ -563,7 +563,7 @@ describe("company portability routes", () => {
);
});
- it.sequential("uses the export selector resolver before checking external instructions", async () => {
+ it("uses the export selector resolver before checking external instructions", async () => {
mockAgentService.list.mockResolvedValue([
{
id: "external-agent",
@@ -612,7 +612,7 @@ describe("company portability routes", () => {
);
});
- it.sequential("keeps non-agent exports open when external instructions are excluded", async () => {
+ it("keeps non-agent exports open when external instructions are excluded", async () => {
mockAgentService.list.mockResolvedValue([{
id: "external-agent",
companyId,
@@ -651,7 +651,7 @@ describe("company portability routes", () => {
);
});
- it.sequential("rejects CEO agents from exporting another company before services run", async () => {
+ it("rejects CEO agents from exporting another company before services run", async () => {
const app = await createApp({
type: "agent",
agentId: ceoAgentId,
@@ -675,7 +675,7 @@ describe("company portability routes", () => {
expect(mockLogActivity).not.toHaveBeenCalled();
});
- it.sequential("rejects replace collision strategy on CEO-safe import routes", async () => {
+ it("rejects replace collision strategy on CEO-safe import routes", async () => {
const app = await createApp({
type: "agent",
agentId: ceoAgentId,
@@ -698,7 +698,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewImport).not.toHaveBeenCalled();
});
- it.sequential("rejects CEO agents from previewing or applying imports against another route company", async () => {
+ it("rejects CEO agents from previewing or applying imports against another route company", async () => {
const app = await createApp({
type: "agent",
agentId: ceoAgentId,
@@ -724,7 +724,7 @@ describe("company portability routes", () => {
expect(mockLogActivity).not.toHaveBeenCalled();
});
- it.sequential("rejects CEO-safe import bodies that target a different company than the route", async () => {
+ it("rejects CEO-safe import bodies that target a different company than the route", async () => {
const app = await createApp({
type: "agent",
agentId: ceoAgentId,
@@ -750,7 +750,7 @@ describe("company portability routes", () => {
expect(mockLogActivity).not.toHaveBeenCalled();
});
- it.sequential("keeps global import preview routes board-only", async () => {
+ it("keeps global import preview routes board-only", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -772,7 +772,7 @@ describe("company portability routes", () => {
expect(res.body.error).toContain("Board access required");
});
- it.sequential("keeps global import preview board-only before validating request shape", async () => {
+ it("keeps global import preview board-only before validating request shape", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -790,7 +790,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewImport).not.toHaveBeenCalled();
});
- it.sequential("requires instance admin for new-company import preview", async () => {
+ it("requires instance admin for new-company import preview", async () => {
const app = await createApp({
type: "board",
userId: "user-1",
@@ -813,7 +813,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewImport).not.toHaveBeenCalled();
});
- it.sequential("rejects replace collision strategy on CEO-safe import apply routes", async () => {
+ it("rejects replace collision strategy on CEO-safe import apply routes", async () => {
const app = await createApp({
type: "agent",
agentId: ceoAgentId,
@@ -836,7 +836,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.importBundle).not.toHaveBeenCalled();
});
- it.sequential("rejects non-CEO agents from CEO-safe import preview routes", async () => {
+ it("rejects non-CEO agents from CEO-safe import preview routes", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -859,7 +859,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewImport).not.toHaveBeenCalled();
});
- it.sequential("rejects non-CEO import preview callers before validating request shape", async () => {
+ it("rejects non-CEO import preview callers before validating request shape", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -877,7 +877,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.previewImport).not.toHaveBeenCalled();
});
- it.sequential("rejects non-CEO agents from CEO-safe import apply routes", async () => {
+ it("rejects non-CEO agents from CEO-safe import apply routes", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -900,7 +900,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.importBundle).not.toHaveBeenCalled();
});
- it.sequential("requires instance admin for new-company import apply", async () => {
+ it("requires instance admin for new-company import apply", async () => {
const app = await createApp({
type: "board",
userId: "user-1",
@@ -923,7 +923,7 @@ describe("company portability routes", () => {
expect(mockCompanyPortabilityService.importBundle).not.toHaveBeenCalled();
});
- it.sequential("accepts trusted Cloud async import jobs and reports success by job id", async () => {
+ it("accepts trusted Cloud async import jobs and reports success by job id", async () => {
let resolveImport: (value: ReturnType<typeof createImportResult>) => void = () => undefined;
const pendingImport = new Promise<ReturnType<typeof createImportResult>>((resolve) => {
resolveImport = resolve;
@@ -988,7 +988,7 @@ describe("company portability routes", () => {
}
});
- it.sequential("reports trusted Cloud async import job failures with the tenant error message", async () => {
+ it("reports trusted Cloud async import job failures with the tenant error message", async () => {
mockCompanyPortabilityService.importBundle.mockRejectedValueOnce(new Error("tenant import exploded"));
const app = await createApp(cloudTenantActor());
@@ -1009,7 +1009,7 @@ describe("company portability routes", () => {
expect(mockLogActivity).not.toHaveBeenCalled();
});
- it.sequential("accepts trusted Cloud async import jobs before validating the full import payload", async () => {
+ it("accepts trusted Cloud async import jobs before validating the full import payload", async () => {
const app = await createApp(cloudTenantActor());
const accepted = await request(app)
@@ -1031,7 +1031,7 @@ describe("company portability routes", () => {
expect(mockLogActivity).not.toHaveBeenCalled();
});
- it.sequential("floors global import apply on a cloud-managed instance, even for the trusted tenant actor", async () => {
+ it("floors global import apply on a cloud-managed instance, even for the trusted tenant actor", async () => {
// The trusted-tenant tests above run without the cloud env signal on
// purpose: the import floor keys on isCloudManagedInstance(), not on the
// actor. With the signal present, even the trusted tenant actor is
@@ -1054,7 +1054,7 @@ describe("company portability routes", () => {
}
});
- it.sequential("forwards pauseAutomations from the global import body to the portability service", async () => {
+ it("forwards pauseAutomations from the global import body to the portability service", async () => {
mockCompanyPortabilityService.importBundle.mockResolvedValueOnce(createImportResult("created"));
const app = await createApp(cloudTenantActor());
@@ -1071,7 +1071,7 @@ describe("company portability routes", () => {
);
});
- it.sequential("runs board-session async imports as jobs and reports the full result by job id", async () => {
+ it("runs board-session async imports as jobs and reports the full result by job id", async () => {
let resolveImport: (value: ReturnType<typeof createImportResult>) => void = () => undefined;
const pendingImport = new Promise<ReturnType<typeof createImportResult>>((resolve) => {
resolveImport = resolve;
@@ -1111,7 +1111,7 @@ describe("company portability routes", () => {
}));
});
- it.sequential("hides a board import job from other board users", async () => {
+ it("hides a board import job from other board users", async () => {
mockCompanyPortabilityService.importBundle.mockReturnValueOnce(new Promise(() => undefined));
const app = await createBoardApp();
@@ -1132,7 +1132,7 @@ describe("company portability routes", () => {
expect(owner.body.job.status).toBe("running");
});
- it.sequential("returns 409 with the running job when a board user resubmits an import", async () => {
+ it("returns 409 with the running job when a board user resubmits an import", async () => {
mockCompanyPortabilityService.importBundle.mockReturnValueOnce(new Promise(() => undefined));
const app = await createBoardApp();
@@ -1168,7 +1168,7 @@ describe("company portability routes", () => {
expect(otherUser.body.job.id).not.toBe(first.body.job.id);
});
- it.sequential(
+ it(
"rejects a concurrent different import without adopting the running job",
async () => {
mockCompanyPortabilityService.importBundle.mockReturnValueOnce(new Promise(() => undefined));
@@ -1200,7 +1200,7 @@ describe("company portability routes", () => {
},
);
- it.sequential("fails a board async import job when the bundle import throws", async () => {
+ it("fails a board async import job when the bundle import throws", async () => {
mockCompanyPortabilityService.importBundle.mockRejectedValueOnce(new Error("import payload is incomplete"));
const app = await createBoardApp();
@@ -1224,7 +1224,7 @@ describe("company portability routes", () => {
expect(mockLogActivity).not.toHaveBeenCalled();
});
- it.sequential("keeps the import job status route board-only", async () => {
+ it("keeps the import job status route board-only", async () => {
const app = await createApp({
type: "agent",
agentId: engineerAgentId,
@@ -1239,7 +1239,7 @@ describe("company portability routes", () => {
expect(res.body.error).toContain("Board access required");
});
- it.sequential("returns 404 for an unknown import job id", async () => {
+ it("returns 404 for an unknown import job id", async () => {
const app = await createBoardApp();
const res = await request(app)
@@ -1250,7 +1250,7 @@ describe("company portability routes", () => {
expect(res.body.error).toBe("Import job not found");
});
- it.sequential("forwards pauseAutomations from CEO-safe import apply bodies to the portability service", async () => {
+ it("forwards pauseAutomations from CEO-safe import apply bodies to the portability service", async () => {
mockCompanyPortabilityService.importBundle.mockResolvedValueOnce(createImportResult("created"));
const app = await createApp({
type: "agent",
@@ -1272,7 +1272,7 @@ describe("company portability routes", () => {
);
});
- it.sequential("imports a company from a multipart zip upload, unzipping into the same inline bundle", async () => {
+ it("imports a company from a multipart zip upload, unzipping into the same inline bundle", async () => {
const app = await createBoardApp();
const files = { "COMPANY.md": "---\nname: Test\n---\n", "agents/ceo/AGENTS.md": "---\nname: CEO\n---\n" };
const zip = buildStoreZip(files, "paperclip");
@@ -1293,7 +1293,7 @@ describe("company portability routes", () => {
expect(call[2]).toEqual({ pauseAutomations: false });
});
- it.sequential("previews a company from a multipart zip upload", async () => {
+ it("previews a company from a multipart zip upload", async () => {
const app = await createBoardApp();
const files = { "COMPANY.md": "---\nname: Test\n---\n" };
const zip = buildStoreZip(files, "paperclip");
@@ -1310,7 +1310,7 @@ describe("company portability routes", () => {
expect(call[0]).toEqual({ ...importMeta, source: { type: "inline", rootPath: "paperclip", files } });
});
- it.sequential("runs a multipart zip import as an async board job via ?async=1", async () => {
+ it("runs a multipart zip import as an async board job via ?async=1", async () => {
let resolveImport: (value: ReturnType<typeof createImportResult>) => void = () => undefined;
const pendingImport = new Promise<ReturnType<typeof createImportResult>>((resolve) => {
resolveImport = resolve;
@@ -1347,7 +1347,7 @@ describe("company portability routes", () => {
expect(succeeded.body.job.importResult).toEqual(fullResult);
});
- it.sequential("engages the async path for board sessions via ?async=1, not the stripped cloud header", async () => {
+ it("engages the async path for board sessions via ?async=1, not the stripped cloud header", async () => {
mockCompanyPortabilityService.importBundle.mockReturnValueOnce(new Promise(() => undefined));
const app = await createBoardApp();
@@ -1363,7 +1363,7 @@ describe("company portability routes", () => {
expect(accepted.body.statusUrl).toMatch(/^\/api\/companies\/import\/jobs\/import-/);
});
- it.sequential("keeps a board import synchronous when neither async signal is present", async () => {
+ it("keeps a board import synchronous when neither async signal is present", async () => {
const app = await createBoardApp();
const res = await request(app)
@@ -1375,7 +1375,7 @@ describe("company portability routes", () => {
expect(res.body.company.id).toBe(companyId);
});
- it.sequential("still engages the async path for cloud tenants via the x-paperclip-cloud-async-import header", async () => {
+ it("still engages the async path for cloud tenants via the x-paperclip-cloud-async-import header", async () => {
mockCompanyPortabilityService.importBundle.mockReturnValueOnce(new Promise(() => undefined));
const app = await createApp(cloudTenantActor());
@@ -1389,7 +1389,7 @@ describe("company portability routes", () => {
expect(accepted.body.statusUrl).toMatch(/^\/api\/companies\/import\/jobs\/tenant-import-/);
});
- it.sequential("rejects a truncated zip upload without importing anything", async () => {
+ it("rejects a truncated zip upload without importing anything", async () => {
const app = await createBoardApp();
const zip = buildStoreZip({ "COMPANY.md": "---\nname: Test\n---\n" }, "paperclip");
const truncated = zip.subarray(0, 40);
diff --git a/server/src/__tests__/invite-test-resolution-route.test.ts b/server/src/__tests__/invite-test-resolution-route.test.ts
index 631b49cb55..775905a8c6 100644
--- a/server/src/__tests__/invite-test-resolution-route.test.ts
+++ b/server/src/__tests__/invite-test-resolution-route.test.ts
@@ -112,7 +112,7 @@ describe("GET /invites/:token/test-resolution", () => {
}
}, 20_000);
- it.sequential("rejects hostnames that resolve to private addresses", async () => {
+ it("rejects hostnames that resolve to private addresses", async () => {
const lookup = vi.fn().mockResolvedValue([{ address: "10.1.2.3", family: 4 }]);
const requestHead = vi.fn();
const app = await createApp(createDbStub([createInvite()]), { lookup, requestHead });
@@ -129,7 +129,7 @@ describe("GET /invites/:token/test-resolution", () => {
expect(requestHead).not.toHaveBeenCalled();
});
- it.sequential("rejects hostnames when any resolved address is private", async () => {
+ it("rejects hostnames when any resolved address is private", async () => {
const lookup = vi.fn().mockResolvedValue([
{ address: "127.0.0.1", family: 4 },
{ address: "93.184.216.34", family: 4 },
@@ -145,7 +145,7 @@ describe("GET /invites/:token/test-resolution", () => {
expect(requestHead).not.toHaveBeenCalled();
});
- it.sequential("allows public HTTPS targets through the resolved and pinned probe path", async () => {
+ it("allows public HTTPS targets through the resolved and pinned probe path", async () => {
const lookup = vi.fn().mockResolvedValue([{ address: "93.184.216.34", family: 4 }]);
const requestHead = vi.fn().mockResolvedValue({ httpStatus: 204 });
const app = await createApp(createDbStub([createInvite()]), { lookup, requestHead });
@@ -174,7 +174,7 @@ describe("GET /invites/:token/test-resolution", () => {
);
});
- it.sequential.each([
+ it.each([
["missing invite", []],
["revoked invite", [createInvite({ revokedAt: new Date("2026-03-07T00:05:00.000Z") })]],
["expired invite", [createInvite({ expiresAt: new Date("2020-03-07T00:10:00.000Z") })]],
diff --git a/ui/package.json b/ui/package.json
index 5df3a92d6e..8ded900de4 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -88,7 +88,7 @@
"tailwindcss": "^4.3.3",
"typescript": "^7.0.2",
"vite": "^8.2.2",
- "vitest": "^4.1.11"
+ "vitest": "^5.0.3"
},
"engines": {
"node": ">=24.11.0"