medusa-test-utils 1.1.45-snapshot-20240929172746 → 1.1.45-snapshot-20240930091918
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/medusa-test-runner-utils/bootstrap-app.js +1 -1
- package/dist/medusa-test-runner-utils/bootstrap-app.js.map +1 -1
- package/dist/medusa-test-runner-utils/use-db.js +1 -3
- package/dist/medusa-test-runner-utils/use-db.js.map +1 -1
- package/package.json +5 -7
package/dist/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export { default as IdMap } from "./id-map";
|
|
4
4
|
export * from "./init-modules";
|
5
5
|
export * as JestUtils from "./jest";
|
6
6
|
export * from "./medusa-test-runner";
|
7
|
-
export * from "./medusa-test-runner-utils
|
7
|
+
export * from "./medusa-test-runner-utils";
|
8
8
|
export { default as MockEventBusService } from "./mock-event-bus-service";
|
9
9
|
export * from "./module-test-runner";
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAA;AAC3C,cAAc,gBAAgB,CAAA;AAC9B,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAA;AAC3C,cAAc,gBAAgB,CAAA;AAC9B,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACzE,cAAc,sBAAsB,CAAA"}
|
package/dist/index.js
CHANGED
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "IdMap", { enumerable: true, get: function () { r
|
|
37
37
|
__exportStar(require("./init-modules"), exports);
|
38
38
|
exports.JestUtils = __importStar(require("./jest"));
|
39
39
|
__exportStar(require("./medusa-test-runner"), exports);
|
40
|
-
__exportStar(require("./medusa-test-runner-utils
|
40
|
+
__exportStar(require("./medusa-test-runner-utils"), exports);
|
41
41
|
var mock_event_bus_service_1 = require("./mock-event-bus-service");
|
42
42
|
Object.defineProperty(exports, "MockEventBusService", { enumerable: true, get: function () { return __importDefault(mock_event_bus_service_1).default; } });
|
43
43
|
__exportStar(require("./module-test-runner"), exports);
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAA+C;AAC/C,2DAA0C;AAC1C,mCAA2C;AAAlC,gHAAA,OAAO,OAAS;AACzB,iDAA8B;AAC9B,oDAAmC;AACnC,uDAAoC;AACpC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAA+C;AAC/C,2DAA0C;AAC1C,mCAA2C;AAAlC,gHAAA,OAAO,OAAS;AACzB,iDAA8B;AAC9B,oDAAmC;AACnC,uDAAoC;AACpC,6DAA0C;AAC1C,mEAAyE;AAAhE,8IAAA,OAAO,OAAuB;AACvC,uDAAoC"}
|
@@ -12,7 +12,7 @@ const utils_2 = require("@medusajs/framework/utils");
|
|
12
12
|
async function bootstrapApp({ cwd, env = {}, } = {}) {
|
13
13
|
const app = (0, express_1.default)();
|
14
14
|
(0, utils_1.applyEnvVarsToProcess)(env);
|
15
|
-
const loaders = require("@medusajs/medusa/
|
15
|
+
const loaders = require("@medusajs/medusa/loaders/index").default;
|
16
16
|
const { container, shutdown } = await loaders({
|
17
17
|
directory: (0, path_1.resolve)(cwd || process.cwd()),
|
18
18
|
expressApp: app,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bootstrap-app.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":";;;;;AA+BA,4BAgDC;AA/ED,sDAA6B;AAC7B,wDAA8B;AAC9B,+BAA8B;AAE9B,mCAA+C;AAC/C,qDAA8E;AAE9E,KAAK,UAAU,YAAY,CAAC,EAC1B,GAAG,EACH,GAAG,GAAG,EAAE,MACoC,EAAE;IAC9C,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAA;IACrB,IAAA,6BAAqB,EAAC,GAAG,CAAC,CAAA;IAE1B,MAAM,OAAO,GAAG,OAAO,CAAC
|
1
|
+
{"version":3,"file":"bootstrap-app.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":";;;;;AA+BA,4BAgDC;AA/ED,sDAA6B;AAC7B,wDAA8B;AAC9B,+BAA8B;AAE9B,mCAA+C;AAC/C,qDAA8E;AAE9E,KAAK,UAAU,YAAY,CAAC,EAC1B,GAAG,EACH,GAAG,GAAG,EAAE,MACoC,EAAE;IAC9C,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAA;IACrB,IAAA,6BAAqB,EAAC,GAAG,CAAC,CAAA;IAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC,OAAO,CAAA;IAEjE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,MAAM,OAAO,CAAC;QAC5C,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B,OAAO,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAA;YAEpB,OAAO,CAAC;gBACN,QAAQ;gBACR,SAAS;gBACT,IAAI;aACL,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEJ,qEAAqE;QACrE,aAAa,GAAG,8BAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
@@ -46,9 +46,7 @@ async function syncLinks(appLoader, directory, container) {
|
|
46
46
|
}
|
47
47
|
async function loadCustomLinks(directory, container) {
|
48
48
|
// TODO: move to framework once settle down
|
49
|
-
const { getResolvedPlugins } =
|
50
|
-
// @ts-expect-error
|
51
|
-
"@medusajs/medusa/dist/loaders/helpers/resolve-plugins");
|
49
|
+
const { getResolvedPlugins, } = require("@medusajs/medusa/loaders/helpers/resolve-plugins");
|
52
50
|
const configModule = container.resolve(utils_1.ContainerRegistrationKeys.CONFIG_MODULE);
|
53
51
|
const plugins = getResolvedPlugins(directory, configModule, true) || [];
|
54
52
|
const linksSourcePaths = plugins.map((plugin) => (0, path_1.join)(plugin.resolve, "links"));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-db.js","sourceRoot":"","sources":["../../src/medusa-test-runner-utils/use-db.ts"],"names":[],"mappings":";;AAQA,wBASC;AAKD,0CAOC;AAKD,8BAkBC;AAnDD,+BAA2B;AAE3B,qDAAqE;AAErE;;GAEG;AACI,KAAK,UAAU,MAAM;IAC1B,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAC7D,qBAAqB,CACtB,CAAA;IAED,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAA;IACzC,MAAM,kBAAkB,EAAE,CAAA;IAE1B,OAAO,YAAY,CAAA;AACrB,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,eAAe,CAAC,SAA0B;IAC9D,IAAI,CAAC;QACH,MAAM,SAAS,CAAC,oBAAoB,EAAE,CA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AA;IACvE,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC9C,IAAA,WAAI,EAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAC9B,CAAA;IAED,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC1D,MAAM,IAAI,UAAU,CAAC,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAA;AAC/C,CAAC"}
|
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-20240930091918",
|
4
4
|
"description": "Test utils for Medusa",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -25,15 +25,12 @@
|
|
25
25
|
"author": "Medusa",
|
26
26
|
"license": "MIT",
|
27
27
|
"devDependencies": {
|
28
|
-
"@medusajs/framework": "0.0.2-snapshot-
|
28
|
+
"@medusajs/framework": "0.0.2-snapshot-20240930091918",
|
29
29
|
"@mikro-orm/core": "5.9.7",
|
30
30
|
"@mikro-orm/knex": "5.9.7",
|
31
31
|
"@mikro-orm/migrations": "5.9.7",
|
32
32
|
"@mikro-orm/postgresql": "5.9.7",
|
33
33
|
"awilix": "^8.0.1",
|
34
|
-
"bignumber.js": "^9.1.2",
|
35
|
-
"express": "^4.18.3",
|
36
|
-
"ioredis": "^5.4.1",
|
37
34
|
"jest": "^29.7.0",
|
38
35
|
"pg": "^8.13.0",
|
39
36
|
"pg-god": "^1.0.12",
|
@@ -42,12 +39,13 @@
|
|
42
39
|
},
|
43
40
|
"dependencies": {
|
44
41
|
"axios": "^0.21.4",
|
42
|
+
"express": "^4.21.0",
|
45
43
|
"get-port": "^5.1.0",
|
46
44
|
"randomatic": "^3.1.1"
|
47
45
|
},
|
48
46
|
"peerDependencies": {
|
49
|
-
"@medusajs/framework": "0.0.2-snapshot-
|
50
|
-
"@medusajs/medusa": "1.20.6-snapshot-
|
47
|
+
"@medusajs/framework": "0.0.2-snapshot-20240930091918",
|
48
|
+
"@medusajs/medusa": "1.20.6-snapshot-20240930091918",
|
51
49
|
"@mikro-orm/postgresql": "5.9.7",
|
52
50
|
"awilix": "^8.0.1"
|
53
51
|
},
|