fix tests: replace initialConfig with config

This commit is contained in:
dswbx
2025-09-04 10:44:14 +02:00
parent e3888537f9
commit 758a89b5d7
31 changed files with 78 additions and 96 deletions

View File

@@ -1,6 +1,5 @@
import { afterAll, afterEach, beforeAll, describe, expect, it } from "bun:test";
import { App, createApp } from "../../src";
import type { AuthResponse } from "../../src/auth";
import { App, createApp, type AuthResponse } from "../../src";
import { auth } from "../../src/auth/middlewares";
import { randomString, secureRandomString, withDisabledConsole } from "../../src/core/utils";
import { disableConsoleLog, enableConsoleLog, getDummyConnection } from "../helper";
@@ -68,7 +67,7 @@ const configs = {
function createAuthApp() {
const app = createApp({
connection: dummyConnection,
initialConfig: {
config: {
auth: configs.auth,
},
});