chore(feature-flags): Remove OrderEditing feature flag (#3006)

This commit is contained in:
Oliver Windall Juhl
2023-01-13 12:10:09 +01:00
committed by GitHub
parent d2c692aa96
commit 9e3beaf531
51 changed files with 300 additions and 984 deletions

View File

@@ -3,7 +3,7 @@ const path = require("path")
const startServerWithEnvironment =
require("../../../helpers/start-server-with-environment").default
const { useApi } = require("../../../helpers/use-api")
const { useDb } = require("../../../helpers/use-db")
const { useDb, initDb } = require("../../../helpers/use-db")
const adminSeeder = require("../../helpers/admin-seeder")
const {
simpleOrderEditFactory,
@@ -21,6 +21,7 @@ const {
simpleRegionFactory,
} = require("../../factories")
const { OrderEditItemChangeType, OrderEdit } = require("@medusajs/medusa")
const setupServer = require("../../../helpers/setup-server")
jest.setTimeout(30000)
@@ -30,19 +31,17 @@ const adminHeaders = {
},
}
describe("[MEDUSA_FF_ORDER_EDITING] /admin/order-edits", () => {
describe("/admin/order-edits", () => {
let medusaProcess
let dbConnection
const adminUserId = "admin_user"
beforeAll(async () => {
const cwd = path.resolve(path.join(__dirname, "..", ".."))
const [process, connection] = await startServerWithEnvironment({
dbConnection = await initDb({ cwd })
medusaProcess = await setupServer({
cwd,
env: { MEDUSA_FF_ORDER_EDITING: true },
})
dbConnection = connection
medusaProcess = process
})
afterAll(async () => {

View File

@@ -18,7 +18,7 @@ const adminHeaders = {
},
}
describe("[MEDUSA_FF_ORDER_EDITING] /admin/payment-collections", () => {
describe("/admin/payment-collections", () => {
let medusaProcess
let dbConnection
@@ -27,7 +27,6 @@ describe("[MEDUSA_FF_ORDER_EDITING] /admin/payment-collections", () => {
const cwd = path.resolve(path.join(__dirname, "..", ".."))
const [process, connection] = await startServerWithEnvironment({
cwd,
env: { MEDUSA_FF_ORDER_EDITING: true },
})
dbConnection = connection
medusaProcess = process

View File

@@ -21,7 +21,7 @@ const adminHeaders = {
},
}
describe("[MEDUSA_FF_ORDER_EDITING] /admin/payment", () => {
describe("/admin/payment", () => {
let medusaProcess
let dbConnection
@@ -30,7 +30,6 @@ describe("[MEDUSA_FF_ORDER_EDITING] /admin/payment", () => {
const cwd = path.resolve(path.join(__dirname, "..", ".."))
const [process, connection] = await startServerWithEnvironment({
cwd,
env: { MEDUSA_FF_ORDER_EDITING: true },
})
dbConnection = connection
medusaProcess = process