Skip to content

Commit

Permalink
chore(medusa): Upgrade ioredis-mock (#3704)
Browse files Browse the repository at this point in the history
* chore(medusa): Upgrade ioredis-mock

* Create .changeset/old-spoons-bow.md

* chore: Increas jest timeout

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
olivermrbl and kodiakhq[bot] authored Apr 9, 2023
1 parent 4104d9c commit 085fedb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-spoons-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

chore(medusa): Upgrade ioredis-mock
7 changes: 1 addition & 6 deletions integration-tests/plugins/__tests__/inventory/order/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const {
simpleShippingOptionFactory,
} = require("../../../factories")

jest.setTimeout(30000)
jest.setTimeout(50000)

const adminHeaders = { headers: { Authorization: "Bearer test_token" } }

Expand All @@ -27,11 +27,6 @@ describe("/store/carts", () => {
let appContainer
let dbConnection

const doAfterEach = async () => {
const db = useDb()
return await db.teardown()
}

beforeAll(async () => {
const cwd = path.resolve(path.join(__dirname, "..", "..", ".."))
dbConnection = await initDb({ cwd })
Expand Down
2 changes: 1 addition & 1 deletion packages/medusa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"fs-exists-cached": "^1.0.0",
"glob": "^7.1.6",
"ioredis": "^5.2.5",
"ioredis-mock": "^5.6.0",
"ioredis-mock": "8.4.0",
"iso8601-duration": "^1.3.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.21",
Expand Down
32 changes: 20 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4043,7 +4043,14 @@ __metadata:
languageName: node
linkType: hard

"@ioredis/commands@npm:^1.1.1":
"@ioredis/as-callback@npm:^3.0.0":
version: 3.0.0
resolution: "@ioredis/as-callback@npm:3.0.0"
checksum: cbeae0c4a8f8f8ea1987d105056fd595a5a1a781a73dfa3a13ac13027fd1de099af6f3590bd315fd20284efd8597430a7ba3b912570804d158dabbdb2071523b
languageName: node
linkType: hard

"@ioredis/commands@npm:^1.1.1, @ioredis/commands@npm:^1.2.0":
version: 1.2.0
resolution: "@ioredis/commands@npm:1.2.0"
checksum: a5d3c29dd84d8a28b7c67a441ac1715cbd7337a7b88649c0f17c345d89aa218578d2b360760017c48149ef8a70f44b051af9ac0921a0622c2b479614c4f65b36
Expand Down Expand Up @@ -5906,7 +5913,7 @@ __metadata:
fs-exists-cached: ^1.0.0
glob: ^7.1.6
ioredis: ^5.2.5
ioredis-mock: ^5.6.0
ioredis-mock: 8.4.0
iso8601-duration: ^1.3.0
jest: ^25.5.4
jsonwebtoken: ^8.5.1
Expand Down Expand Up @@ -20374,7 +20381,7 @@ __metadata:
languageName: node
linkType: hard

"fengari-interop@npm:^0.1.2":
"fengari-interop@npm:^0.1.3":
version: 0.1.3
resolution: "fengari-interop@npm:0.1.3"
peerDependencies:
Expand Down Expand Up @@ -23427,18 +23434,19 @@ __metadata:
languageName: node
linkType: hard

"ioredis-mock@npm:^5.6.0":
version: 5.9.1
resolution: "ioredis-mock@npm:5.9.1"
"ioredis-mock@npm:8.4.0":
version: 8.4.0
resolution: "ioredis-mock@npm:8.4.0"
dependencies:
"@ioredis/as-callback": ^3.0.0
"@ioredis/commands": ^1.2.0
fengari: ^0.1.4
fengari-interop: ^0.1.2
lodash: ^4.17.21
standard-as-callback: ^2.1.0
fengari-interop: ^0.1.3
semver: ^7.3.8
peerDependencies:
ioredis: 4.x
redis-commands: 1.x
checksum: 0b898273788c38ec617a3cf94df93c41a8f05a1cf57dfbbc3a97ea72fc07882be3872d55c915e49e615892ec20129351be7bb68e1beb7563a01eec157cc84088
"@types/ioredis-mock": ^8
ioredis: ^5
checksum: 689b250c2b0ec051b3d4062d850b7a458cc0e8a263b4666eae3929bb79fd0caf5b65605f3c275eff8f3e872f936dfa5a63db9e732697bc8240c82076bcb20caf
languageName: node
linkType: hard

Expand Down

0 comments on commit 085fedb

Please sign in to comment.