fix(ci): restore prepack script and stabilize cursor timeout

- restore the package prepack hook expected by npm packaging coverage
- raise the oversized cursor models test timeout to avoid full-suite flakes
This commit is contained in:
Tam Nhu Tran committed 2026-04-01 15:38:18 -04:00
1 parent 982ffc5895
commit 037ed632fd
2 files changed
+7 -2

No files matched your search

+1
View File
@@ -87,6 +87,7 @@
"ui:build": "cd ui && bun run build", "ui:build": "cd ui && bun run build",
"ui:preview": "cd ui && bun run preview", "ui:preview": "cd ui && bun run preview",
"ui:validate": "cd ui && bun run validate", "ui:validate": "cd ui && bun run validate",
"prepack": "bun run build:all",
"prepare": "husky", "prepare": "husky",
"postinstall": "node scripts/postinstall.js" "postinstall": "node scripts/postinstall.js"
}, },
+6 -2
View File
@@ -159,7 +159,9 @@ describe('fetchModelsFromDaemon', () => {
} }
}); });
it('falls back to defaults when daemon response exceeds max body size', async () => { it(
'falls back to defaults when daemon response exceeds max body size',
async () => {
const oversizedPayload = 'x'.repeat(1024 * 1024 + 1024); const oversizedPayload = 'x'.repeat(1024 * 1024 + 1024);
const server = http.createServer((_req, res) => { const server = http.createServer((_req, res) => {
res.writeHead(200, { 'Content-Type': 'application/json' }); res.writeHead(200, { 'Content-Type': 'application/json' });
@@ -178,7 +180,9 @@ describe('fetchModelsFromDaemon', () => {
} finally { } finally {
await new Promise<void>((resolve) => server.close(() => resolve())); await new Promise<void>((resolve) => server.close(() => resolve()));
} }
}); },
10000
);
}); });
describe('fetchModelsFromCursorApi', () => { describe('fetchModelsFromCursorApi', () => {