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

@@ -98,10 +98,10 @@ export type AppOptions = {
readonly?: boolean;
} & (
| {
mode: "db";
mode?: "db";
secrets?: Record<string, any>;
}
| { mode: "code" }
| { mode?: "code" }
);
export type CreateAppConfig = {
/**
@@ -163,7 +163,7 @@ export class App<C extends Connection = Connection, Options extends AppOptions =
}
isReadOnly() {
return this.mode === "code" || this.options?.readonly;
return Boolean(this.mode === "code" || this.options?.readonly);
}
get emgr() {