bknd is dead long live userbase
Run Tests / test (pull_request) Successful in 4m57s

This commit is contained in:
2026-09-27 19:34:06 +05:30
parent 05e0086fcd
commit 0bfcb5ad71
529 changed files with 2385 additions and 2924 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ describe("AppAuth", () => {
}
});
test("registers auth middleware for bknd routes only", async () => {
test("registers auth middleware for userbase routes only", async () => {
const app = createApp({
config: {
auth: {
@@ -25,7 +25,7 @@ async function createVersionedApp(
const { version, ...rest } = config;
const db = dummyConnection.kysely as Kysely<any>;
await sql`CREATE TABLE "__bknd" (
await sql`CREATE TABLE "__userbase" (
"id" integer not null primary key autoincrement,
"version" integer,
"type" text,
@@ -35,7 +35,7 @@ async function createVersionedApp(
)`.execute(db);
await db
.insertInto("__bknd")
.insertInto("__userbase")
.values({
version,
type: "config",
@@ -61,7 +61,7 @@ async function getRawConfig(
) {
const db = app.em.connection.kysely;
return await db
.selectFrom("__bknd")
.selectFrom("__userbase")
.selectAll()
.where("version", "=", opts?.version ?? CURRENT_VERSION)
.$if((opts?.types?.length ?? 0) > 0, (qb) => qb.where("type", "in", opts?.types))
@@ -546,7 +546,7 @@
"config": {
"access_key": "123",
"secret_access_key": "123",
"url": "https://123.r2.cloudflarestorage.com/bknd-123"
"url": "https://123.r2.cloudflarestorage.com/userbase-123"
}
}
},
+1 -1
View File
@@ -7,7 +7,7 @@ import { EntityManager } from "data/entities/EntityManager";
import { Module, type ModuleBuildContext } from "modules/Module";
import { getDummyConnection } from "../helper";
import { ModuleHelper } from "modules/ModuleHelper";
import { DebugLogger, McpServer } from "bknd/utils";
import { DebugLogger, McpServer } from "userbase/utils";
export function makeCtx(overrides?: Partial<ModuleBuildContext>): ModuleBuildContext {
const { dummyConnection } = getDummyConnection();