mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-15 20:53:23 +02:00
Merge branch 'codex/hermes-native-runner' into codex/hermes-qualification
* codex/hermes-native-runner: test: separate cold route setup and bound backup integration cases
This commit is contained in:
commit
7de8063a04
2 files changed
+12
-5
No files matched your search
@@ -173,11 +173,10 @@ const externalAdapter: ServerAdapterModule = {
|
||||
|
||||
const missingAdapterType = "missing_adapter_validation_test";
|
||||
|
||||
let agentRoutes: typeof import("../routes/agents.js").agentRoutes;
|
||||
let errorHandler: typeof import("../middleware/index.js").errorHandler;
|
||||
|
||||
async function createApp(actorOverride: Record<string, unknown> = {}) {
|
||||
const [{ agentRoutes }, { errorHandler }] = await Promise.all([
|
||||
vi.importActual<typeof import("../routes/agents.js")>("../routes/agents.js"),
|
||||
vi.importActual<typeof import("../middleware/index.js")>("../middleware/index.js"),
|
||||
]);
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
app.use((req, _res, next) => {
|
||||
@@ -332,6 +331,12 @@ describe("agent routes adapter validation", () => {
|
||||
}));
|
||||
await unregisterTestAdapter("external_test");
|
||||
await unregisterTestAdapter(missingAdapterType);
|
||||
// These imports follow resetModules and the per-test mocks. Keep their cold
|
||||
// setup cost in the existing 30-second hook, outside the request deadline.
|
||||
[{ agentRoutes }, { errorHandler }] = await Promise.all([
|
||||
vi.importActual<typeof import("../routes/agents.js")>("../routes/agents.js"),
|
||||
vi.importActual<typeof import("../middleware/index.js")>("../middleware/index.js"),
|
||||
]);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in new issue
Block a user