MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / createTestAppWithUserRoutes

Function createTestAppWithUserRoutes

server/tests/helpers/testApp.js:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52export async function createTestAppWithUserRoutes() {
53 const app = await createTestApp();
54
55 // Mount User routes by executing the route module with the app instance.
56 // This matches server/index.js behavior (routes register handlers on the app).
57 // eslint-disable-next-line global-require
58 const userRoute = require("../../api/UserRoute.js");
59 userRoute(app);
60
61 return app;
62}

Calls 1

createTestAppFunction · 0.85

Tested by

no test coverage detected