medusa-test-utils 1.1.45-snapshot-20240528094636 → 1.1.45-snapshot-20240528143001
Sign up to get free protection for your applications and to get access to all the features.
@@ -162,8 +162,8 @@ function medusaIntegrationTestRunner(_a) {
|
|
162
162
|
var originalConfigLoader = require("@medusajs/medusa/dist/loaders/config").default;
|
163
163
|
require("@medusajs/medusa/dist/loaders/config").default = function (rootDirectory) {
|
164
164
|
var config = originalConfigLoader(rootDirectory);
|
165
|
-
config.projectConfig.
|
166
|
-
config.projectConfig.
|
165
|
+
config.projectConfig.databaseUrl = dbConfig.clientUrl;
|
166
|
+
config.projectConfig.databaseDriverOptions = dbConfig.clientUrl.includes("localhost")
|
167
167
|
? {}
|
168
168
|
: {
|
169
169
|
connection: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"medusa-test-runner.js","sourceRoot":"","sources":["../src/medusa-test-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAGwB;AACxB,iCAAqD;AACrD,uCAA2C;AAC3C,0EAAmE;AACnE,4DAA0D;AAE1D,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAA;AAEtC,IAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAA;AACnC,IAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;AAC3C,IAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;AAE3C,IAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;IACrB,IAAI,EAAE,OAAO;CACd,CAAA;AAED,IAAM,iBAAiB,GAAG,cAAW,OAAA,CAAC;IACpC,aAAa,EAAE,IAAI;IAEnB,MAAM,EAAE,UAAgB,MAAc;;;;4BACpC,qBAAM,IAAA,uBAAc,EAAC,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,gBAAgB,CAAC,EAA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AAM,QAAQ,EAAE,EAAA;;wBAAhB,SAAgB,CAAA;;;;aACjB,CAAC,CAAA;QAEF,SAAS,CAAC,OAAQ,CAAC,CAAA;IACrB,CAAC,CAAC,CAAA;AACJ,CAAC;AA9KD,kEA8KC"}
|
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-20240528143001",
|
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-20240528143001",
|
28
28
|
"cross-env": "^5.2.1",
|
29
29
|
"jest": "^25.5.4",
|
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-20240528143001",
|
35
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240528143001",
|
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-20240528143001",
|
60
60
|
"@mikro-orm/migrations": "5.9.7",
|
61
61
|
"@mikro-orm/postgresql": "5.9.7",
|
62
62
|
"randomatic": "^3.1.1"
|