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:
Harminder Virk
2024-05-28 14:49:29 +02:00
committed by GitHub
co-authored by Oli Juhl
parent e60b4bafe1
commit 82be054a1a
15 changed files with 297 additions and 140 deletions
@@ -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 })
})
+3 -3
View File
@@ -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",
})
+2 -2
View File
@@ -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",