Skip to content

Commit c3fca96

Browse files
authored
Merge branch 'develop' into feat/cookie-options
2 parents 4e74131 + 9bdd542 commit c3fca96

111 files changed

Lines changed: 5835 additions & 502 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/big-olives-do.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@medusajs/utils": patch
3+
"@medusajs/auth": patch
4+
"@medusajs/customer": patch
5+
"@medusajs/fulfillment": patch
6+
"@medusajs/inventory": patch
7+
"@medusajs/payment": patch
8+
---
9+
10+
fix(utils): medusa internal service returned data should match typings

.changeset/cold-cats-cheat.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@medusajs/medusa": patch
3+
"@medusajs/test-utils": patch
4+
"@medusajs/framework": patch
5+
"@medusajs/utils": patch
6+
---
7+
8+
chore(): Add retry strategy to database connection

.changeset/loud-ducks-do.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@medusajs/dashboard": patch
3+
"@medusajs/types": patch
4+
---
5+
6+
feat(dashboard,types): add credit lines + loyalty changes

.changeset/shy-nails-enjoy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-medusa-app": patch
3+
---
4+
5+
fix(create-medusa-app): ensure the same package manager is used consistently

.changeset/sour-tigers-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/framework": patch
3+
---
4+
5+
chore: upgrade to use glob 10

.changeset/stale-forks-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/payment": patch
3+
---
4+
5+
fix(payment): add account holder methods to the manual provider

integration-tests/api/jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ process.chdir(__dirname)
44
const defineJestConfig = require("../../define_jest_config")
55
module.exports = defineJestConfig({
66
testEnvironment: `node`,
7-
rootDir: "./",
87
testPathIgnorePatterns: [
98
`/examples/`,
109
`/www/`,

integration-tests/api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"license": "MIT",
66
"private": true,
77
"scripts": {
8-
"test:integration": "NODE_OPTIONS=--experimental-vm-modules jest --silent=false --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage",
9-
"test:integration:chunk": "NODE_OPTIONS=--experimental-vm-modules jest --silent --no-cache --bail --maxWorkers=50% --forceExit --detectOpenHandles --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")",
8+
"test:integration": "jest --silent=false --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage",
9+
"test:integration:chunk": "jest --silent --no-cache --bail --maxWorkers=50% --forceExit --detectOpenHandles --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")",
1010
"build": "tsc ./src/* --allowJs --outDir ./dist"
1111
},
1212
"dependencies": {

integration-tests/http/__tests__/order/admin/order.spec.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,44 @@ medusaIntegrationTestRunner({
3030
).data.shipping_profile
3131
})
3232

33+
describe("GET /admin/orders", () => {
34+
beforeEach(async () => {
35+
seeder = await createOrderSeeder({
36+
api,
37+
container: getContainer(),
38+
})
39+
order = seeder.order
40+
})
41+
42+
it("should search orders by display_id", async () => {
43+
let response = await api.get(`/admin/orders`, adminHeaders)
44+
45+
expect(response.data.orders).toHaveLength(1)
46+
expect(response.data.orders).toEqual([
47+
expect.objectContaining({
48+
id: order.id,
49+
}),
50+
])
51+
52+
response = await api.get(
53+
`/admin/orders?q=${order.display_id}`,
54+
adminHeaders
55+
)
56+
57+
expect(response.data.orders).toHaveLength(1)
58+
expect(response.data.orders).toEqual([
59+
expect.objectContaining({
60+
id: order.id,
61+
}),
62+
])
63+
64+
response = await api.get(`/admin/orders?q=2345`, adminHeaders)
65+
66+
expect(response.data.orders).toHaveLength(0)
67+
expect(response.data.orders).toEqual([])
68+
})
69+
})
70+
3371
describe("POST /orders/:id", () => {
3472
beforeEach(async () => {
3573
seeder = await createOrderSeeder({

integration-tests/http/jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ process.chdir(__dirname)
22
const defineJestConfig = require("../../define_jest_config")
33
module.exports = defineJestConfig({
44
testEnvironment: `node`,
5-
rootDir: "./",
65
testPathIgnorePatterns: [
76
`/examples/`,
87
`/www/`,

0 commit comments

Comments
 (0)