MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / createTestApp

Function createTestApp

apps/api/test/utils.ts:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 * (global `/api` prefix).
14 */
15export async function createTestApp(): Promise<INestApplication> {
16 process.env.DEMO_LLM = "1";
17 const dir = mkdtempSync(join(tmpdir(), "ta-api-"));
18 const ref = await Test.createTestingModule({ imports: [AppModule] })
19 .overrideProvider(STORE_DIR)
20 .useValue(dir)
21 .compile();
22 const app = ref.createNestApplication();
23 app.setGlobalPrefix("api");
24 app.useGlobalFilters(new AllExceptionsFilter());
25 await app.init();
26 return app;
27}

Callers 5

memory.e2e-spec.tsFile · 0.85
config.e2e-spec.tsFile · 0.85
models.e2e-spec.tsFile · 0.85
keys.e2e-spec.tsFile · 0.85
health.e2e-spec.tsFile · 0.85

Calls 1

compileMethod · 0.80

Tested by

no test coverage detected