fix tests

This commit is contained in:
dswbx
2025-06-13 17:27:58 +02:00
parent 96ae8f9d63
commit af6d1960b9

View File

@@ -1,5 +1,5 @@
import { afterEach, describe, test } from "bun:test"; import { afterEach, describe, test, expect } from "bun:test";
import { App } from "../src"; import { App, createApp } from "core/test/utils";
import { getDummyConnection } from "./helper"; import { getDummyConnection } from "./helper";
import { Hono } from "hono"; import { Hono } from "hono";
import * as proto from "../src/data/prototype"; import * as proto from "../src/data/prototype";
@@ -18,7 +18,7 @@ describe("App tests", async () => {
test("plugins", async () => { test("plugins", async () => {
const called: string[] = []; const called: string[] = [];
const app = App.create({ const app = createApp({
initialConfig: { initialConfig: {
auth: { auth: {
enabled: true, enabled: true,