Rescue the Paperclip CLI spawn coverage by making fake child events deterministic and re-enabling the suite. - Route mintAgentApiKeyViaCli cases through the shared fake spawn helper so close and error events are emitted after listener registration. - Document the async import/listener-order requirement that caused the quarantine. - Remove paperclip-client.test.ts from the quarantine ledger and Vitest exclude list so the rescued tests run. Files changed: .../src/__tests__/paperclip-client.test.ts | 134 +++++++-------------- .../vitest.config.ts | 2 - scripts/lib/test-quarantine.json | 5 - 3 files changed, 44 insertions(+), 97 deletions(-) Fusion-Task-Id: FN-6636 Fusion-Task-Lineage: 79038ab3-0aa6-465e-9c6e-f6bc83fcd407
23 lines
847 B
TypeScript
23 lines
847 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { fileURLToPath } from "node:url";
|
|
import { computeMaxWorkers } from "../../packages/core/src/__test-utils__/vitest-workers";
|
|
|
|
const maxWorkers = computeMaxWorkers();
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@fusion/core": fileURLToPath(new URL("../../packages/core/src/index.ts", import.meta.url)),
|
|
"@fusion/plugin-sdk": fileURLToPath(new URL("../../packages/plugin-sdk/src/index.ts", import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
include: ["src/**/*.test.ts"],
|
|
setupFiles: [fileURLToPath(new URL("../../packages/core/src/__test-utils__/vitest-setup.ts", import.meta.url))],
|
|
globalSetup: [fileURLToPath(new URL("../../packages/core/src/__test-utils__/vitest-teardown.ts", import.meta.url))],
|
|
pool: "threads",
|
|
maxWorkers,
|
|
minWorkers: 1,
|
|
},
|
|
});
|