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

@@ -28,7 +28,7 @@ export default {
},
}),
// an initial config is only applied if the database is empty
initialConfig: {
config: {
data: schema.toJSON(),
// we're enabling auth ...
auth: {

View File

@@ -8,7 +8,7 @@ const config: BunBkndConfig = {
connection: {
url: "file:data.db",
},
initialConfig: {
config: {
media: {
enabled: true,
adapter: {

View File

@@ -33,7 +33,7 @@ export default {
},
}),
// an initial config is only applied if the database is empty
initialConfig: {
config: {
data: schema.toJSON(),
// we're enabling auth ...
auth: {

View File

@@ -3,7 +3,7 @@ import { App, boolean, em, entity, text } from "bknd";
import { secureRandomString } from "bknd/utils";
export default serve({
initialConfig: {
config: {
data: em({
todos: entity("todos", {
title: text(),

View File

@@ -27,7 +27,7 @@ export default {
},
}),
// an initial config is only applied if the database is empty
initialConfig: {
config: {
data: schema.toJSON(),
// we're enabling auth ...
auth: {

View File

@@ -25,7 +25,7 @@ export default {
url: process.env.DB_URL ?? "file:data.db",
},
// an initial config is only applied if the database is empty
initialConfig: {
config: {
data: schema.toJSON(),
// we're enabling auth ...
auth: {