feat: simplify testing structure into api and e2e categories

This commit is contained in:
bipproduction
2026-02-08 11:01:55 +08:00
parent 4640b72ca6
commit 0f71798389
18 changed files with 1006 additions and 62 deletions

View File

@@ -4,6 +4,7 @@ import Elysia from "elysia";
import { apiMiddleware } from "../middleware/apiMiddleware";
import { auth } from "../utils/auth";
import { apikey } from "./apikey";
import { profile } from "./profile";
const isProduction = process.env.NODE_ENV === "production";
@@ -18,7 +19,8 @@ const api = new Elysia({
return { data };
})
.use(apiMiddleware)
.use(apikey);
.use(apikey)
.use(profile);
if (!isProduction) {
api.use(