medusa-test-utils 1.1.45-snapshot-20240711055158 → 1.1.45-snapshot-20240712092102
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,8 +21,8 @@ async function initDb({ cwd, env = {}, }) {
|
|
21
21
|
[utils_1.ContainerRegistrationKeys.FEATURE_FLAG_ROUTER]: (0, awilix_1.asValue)(featureFlagRouter),
|
22
22
|
});
|
23
23
|
try {
|
24
|
-
const {
|
25
|
-
await
|
24
|
+
const { runMedusaAppMigrations, } = require("@medusajs/medusa/dist/loaders/medusa-app");
|
25
|
+
await runMedusaAppMigrations({ configModule, container });
|
26
26
|
}
|
27
27
|
catch (err) {
|
28
28
|
console.error("Something went wrong while running the migrations");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-db.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/use-db.ts"],"names":[],"mappings":";;;AAAA,2CAIwB;AACxB,mCAAgC;AAEzB,KAAK,UAAU,MAAM,CAAC,EAC3B,GAAG,EACH,GAAG,GAAG,EAAE,GAIT;IACC,IAAI,IAAA,gBAAQ,EAAC,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAC/D,CAAC;IAED,MAAM,SAAS,GAAG,IAAA,6BAAqB,GAAE,CAAA;IAEzC,MAAM,YAAY,GAChB,MAAM,OAAO,CAAC,sCAAsC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAEpE,MAAM,YAAY,GAChB,MAAM,OAAO,CAAC,6CAA6C,CAAC,CAAC,OAAO,CAAC;QACnE,YAAY;QACZ,SAAS;KACV,CAAC,CAAA;IAEJ,MAAM,iBAAiB,GACrB,OAAO,CAAC,6CAA6C,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA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CAAC,iCAAyB,CAAC,aAAa,CAAC,EAAE,IAAA,gBAAO,EAAC,YAAY,CAAC;QAChE,CAAC,iCAAyB,CAAC,MAAM,CAAC,EAAE,IAAA,gBAAO,EAAC,OAAO,CAAC;QACpD,CAAC,iCAAyB,CAAC,aAAa,CAAC,EAAE,IAAA,gBAAO,EAAC,YAAY,CAAC;QAChE,CAAC,iCAAyB,CAAC,mBAAmB,CAAC,EAAE,IAAA,gBAAO,EAAC,iBAAiB,CAAC;KAC5E,CAAC,CAAA;IAEF,IAAI,CAAC;QACH,MAAM,EACJ,sBAAsB,GACvB,GAAG,OAAO,CAAC,0CAA0C,CAAC,CAAA;QACvD,MAAM,sBAAsB,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAA;IAC3D,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAA;QAClE,MAAM,GAAG,CAAA;IACX,CAAC;IAED,OAAO,YAAY,CAAA;AACrB,CAAC;AA3CD,wBA2CC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "medusa-test-utils",
|
3
|
-
"version": "1.1.45-snapshot-
|
3
|
+
"version": "1.1.45-snapshot-20240712092102",
|
4
4
|
"description": "Test utils for Medusa",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"author": "Sebastian Rindom",
|
25
25
|
"license": "MIT",
|
26
26
|
"devDependencies": {
|
27
|
-
"@medusajs/types": "1.12.0-snapshot-
|
27
|
+
"@medusajs/types": "1.12.0-snapshot-20240712092102",
|
28
28
|
"cross-env": "^5.2.1",
|
29
29
|
"jest": "^29.7.0",
|
30
30
|
"rimraf": "^3.0.2",
|
31
31
|
"typescript": "^5.1.6"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
34
|
-
"@medusajs/medusa": "1.20.6-snapshot-
|
35
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
34
|
+
"@medusajs/medusa": "1.20.6-snapshot-20240712092102",
|
35
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240712092102",
|
36
36
|
"axios": "^0.28.0",
|
37
37
|
"express": "^4.18.3",
|
38
38
|
"get-port": "^5.1.0",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
}
|
57
57
|
},
|
58
58
|
"dependencies": {
|
59
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
59
|
+
"@medusajs/utils": "1.12.0-snapshot-20240712092102",
|
60
60
|
"@mikro-orm/migrations": "5.9.7",
|
61
61
|
"@mikro-orm/postgresql": "5.9.7",
|
62
62
|
"randomatic": "^3.1.1"
|