Skip to content

Commit

Permalink
Merge branch 'develop' into fix/stripe-payment-capture
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues authored Jul 13, 2024
2 parents 90435fb + 7e82f98 commit 788d01d
Show file tree
Hide file tree
Showing 282 changed files with 97,572 additions and 64,588 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/generate-public-references.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ jobs:
base: "develop"
title: "chore(docs): Updated API Reference (v2)"
labels: "type: chore"
add-paths: www/apps/api-reference/specs
add-paths: |
www/apps/api-reference/specs
www/utils/generated/oas-output
branch: "docs/generate-api-ref"
branch-suffix: "timestamp"
ui:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/generate-resources-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
add-paths: |
www/apps/resources/references/**
www/apps/resources/generated/**
www/utils/generated/typedoc-json-output
branch: "docs/generate-reference"
branch-suffix: "timestamp"
body: ${{ steps.pr-message.outputs.body }}
9 changes: 4 additions & 5 deletions integration-tests/environment-helpers/use-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const { dropDatabase } = require("pg-god")
const { DataSource } = require("typeorm")
const dbFactory = require("./use-template-db")
const { ContainerRegistrationKeys } = require("@medusajs/utils")
const { migrateMedusaApp } = require("@medusajs/medusa/dist/loaders/medusa-app")
const {
runMedusaAppMigrations,
} = require("@medusajs/medusa/dist/loaders/medusa-app")

const DB_HOST = process.env.DB_HOST
const DB_USERNAME = process.env.DB_USERNAME
Expand Down Expand Up @@ -181,10 +183,7 @@ module.exports = {

instance.setPgConnection(pgConnection)

await migrateMedusaApp(
{ configModule, container },
{ registerInContainer: false }
)
await runMedusaAppMigrations({ configModule, container })
}

return dbDataSource
Expand Down
16 changes: 16 additions & 0 deletions integration-tests/http/__tests__/product/store/product.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,17 @@ medusaIntegrationTestRunner({
is_calculated_price_price_list: false,
is_calculated_price_tax_inclusive: false,
calculated_amount: 3000,
raw_calculated_amount: {
value: "3000",
precision: 20,
},
is_original_price_price_list: false,
is_original_price_tax_inclusive: false,
original_amount: 3000,
raw_original_amount: {
value: "3000",
precision: 20,
},
currency_code: "usd",
calculated_price: {
id: expect.any(String),
Expand Down Expand Up @@ -1227,9 +1235,17 @@ medusaIntegrationTestRunner({
is_calculated_price_price_list: false,
is_calculated_price_tax_inclusive: false,
calculated_amount: 3000,
raw_calculated_amount: {
value: "3000",
precision: 20,
},
is_original_price_price_list: false,
is_original_price_tax_inclusive: false,
original_amount: 3000,
raw_original_amount: {
value: "3000",
precision: 20,
},
currency_code: "usd",
calculated_price: {
id: expect.any(String),
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/modules/__tests__/order/order.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ medusaIntegrationTestRunner({
describe("Orders - Admin", () => {
it("should get an order", async () => {
const created = await orderModule.createOrders({
region_id: "test_region_idclear",
region_id: "test_region_id",
email: "[email protected]",
items: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export async function createOrderFixture({
)

let order = await orderService.createOrders({
region_id: "test_region_idclear",
region_id: "test_region_id",
email: "[email protected]",
items: [
{
Expand Down
Loading

0 comments on commit 788d01d

Please sign in to comment.