chore(medusa): remove PublishableAPIKeys feature flag (#3087)
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
const path = require("path")
|
||||
const { IdMap } = require("medusa-test-utils")
|
||||
|
||||
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 {
|
||||
simplePublishableApiKeyFactory,
|
||||
@@ -14,6 +12,7 @@ const {
|
||||
simpleProductFactory,
|
||||
simpleRegionFactory,
|
||||
} = require("../../factories")
|
||||
const setupServer = require("../../../helpers/setup-server")
|
||||
|
||||
jest.setTimeout(50000)
|
||||
|
||||
@@ -30,22 +29,15 @@ const customerData = {
|
||||
last_name: "medusa",
|
||||
}
|
||||
|
||||
describe("[MEDUSA_FF_PUBLISHABLE_API_KEYS] Publishable API keys", () => {
|
||||
describe("Publishable API keys", () => {
|
||||
let medusaProcess
|
||||
let dbConnection
|
||||
const adminUserId = "admin_user"
|
||||
|
||||
beforeAll(async () => {
|
||||
const cwd = path.resolve(path.join(__dirname, "..", ".."))
|
||||
const [process, connection] = await startServerWithEnvironment({
|
||||
cwd,
|
||||
env: {
|
||||
MEDUSA_FF_PUBLISHABLE_API_KEYS: true,
|
||||
MEDUSA_FF_SALES_CHANNELS: true,
|
||||
},
|
||||
})
|
||||
dbConnection = connection
|
||||
medusaProcess = process
|
||||
dbConnection = await initDb({ cwd })
|
||||
medusaProcess = await setupServer({ cwd })
|
||||
})
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
Reference in New Issue
Block a user