chore: Rename config properties to camelCase (#7498)
* refactor: rename config types to camelCase * refactor: update config references to use renamed options * refactor: update more references --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
co-authored by
Oli Juhl
parent
e60b4bafe1
commit
82be054a1a
@@ -13,7 +13,7 @@ describe("Database options", () => {
|
||||
const cwd = path.resolve(path.join(__dirname, "..", ".."))
|
||||
dbConnection = await initDb({
|
||||
cwd,
|
||||
database_extra: { idle_in_transaction_session_timeout: 1000 },
|
||||
databaseExtra: { idle_in_transaction_session_timeout: 1000 },
|
||||
})
|
||||
medusaProcess = await setupServer({ cwd })
|
||||
})
|
||||
|
||||
@@ -21,9 +21,9 @@ module.exports = {
|
||||
disable: true,
|
||||
},
|
||||
projectConfig: {
|
||||
redis_url: redisUrl,
|
||||
database_url: DB_URL,
|
||||
database_type: "postgres",
|
||||
redisUrl: redisUrl,
|
||||
databaseUrl: DB_URL,
|
||||
databaseType: "postgres",
|
||||
http: {
|
||||
compression: {
|
||||
enabled: enableResponseCompression,
|
||||
|
||||
@@ -91,7 +91,7 @@ const instance = DbTestUtil
|
||||
module.exports = {
|
||||
initDb: async function ({
|
||||
cwd,
|
||||
database_extra,
|
||||
databaseExtra,
|
||||
env,
|
||||
force_modules_migration,
|
||||
}) {
|
||||
@@ -145,7 +145,7 @@ module.exports = {
|
||||
url: DB_URL,
|
||||
entities: enabledEntities.concat(moduleModels),
|
||||
migrations: enabledMigrations.concat(moduleMigrations),
|
||||
extra: database_extra ?? {},
|
||||
extra: databaseExtra ?? {},
|
||||
name: "integration-tests",
|
||||
})
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ module.exports = {
|
||||
},
|
||||
plugins: [],
|
||||
projectConfig: {
|
||||
database_url: DB_URL,
|
||||
database_type: "postgres",
|
||||
databaseUrl: DB_URL,
|
||||
databaseType: "postgres",
|
||||
http: {
|
||||
jwtSecret: "test",
|
||||
cookieSecret: "test",
|
||||
|
||||
Reference in New Issue
Block a user