@etohq/test-utils 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eto-test-runner-utils/bootstrap-app.d.ts +0 -1
- package/dist/eto-test-runner-utils/bootstrap-app.d.ts.map +1 -1
- package/dist/eto-test-runner-utils/bootstrap-app.js +7 -25
- package/dist/eto-test-runner-utils/bootstrap-app.js.map +1 -1
- package/dist/eto-test-runner-utils/use-db.d.ts +1 -1
- package/dist/eto-test-runner-utils/use-db.d.ts.map +1 -1
- package/dist/eto-test-runner.d.ts.map +1 -1
- package/dist/eto-test-runner.js +96 -86
- package/dist/eto-test-runner.js.map +1 -1
- package/package.json +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-app.d.ts","sourceRoot":"","sources":["../../src/eto-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bootstrap-app.d.ts","sourceRoot":"","sources":["../../src/eto-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AA0BrD,wBAAsB,QAAQ,CAAC,EAC7B,GAAG,EACH,GAAQ,GACT,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAO,GAAG,OAAO,CAAC;IACzD,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7B,SAAS,EAAE,YAAY,CAAA;CACxB,CAAC,CAuBD"}
|
|
@@ -4,56 +4,38 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.startApp = startApp;
|
|
7
|
-
const express_1 = __importDefault(require("express"));
|
|
8
7
|
const get_port_1 = __importDefault(require("get-port"));
|
|
9
8
|
const path_1 = require("path");
|
|
10
9
|
const utils_1 = require("./utils");
|
|
11
10
|
const utils_2 = require("@etohq/framework/utils");
|
|
11
|
+
// toodo refactor ... this will not work.
|
|
12
12
|
async function bootstrapApp({ cwd, env = {}, } = {}) {
|
|
13
|
-
const app = (0, express_1.default)();
|
|
14
13
|
(0, utils_1.applyEnvVarsToProcess)(env);
|
|
15
14
|
const loaders = require("@etohq/eto/loaders/index").default;
|
|
16
15
|
const { container, shutdown } = await loaders({
|
|
17
16
|
directory: (0, path_1.resolve)(cwd || process.cwd()),
|
|
18
|
-
expressApp: app,
|
|
19
17
|
});
|
|
20
18
|
const PORT = process.env.PORT ? parseInt(process.env.PORT) : await (0, get_port_1.default)();
|
|
21
19
|
return {
|
|
22
20
|
shutdown,
|
|
23
21
|
container,
|
|
24
|
-
app,
|
|
25
22
|
port: PORT,
|
|
26
23
|
};
|
|
27
24
|
}
|
|
28
25
|
async function startApp({ cwd, env = {}, } = {}) {
|
|
29
|
-
const {
|
|
26
|
+
const { container, shutdown: etoShutdown, } = await bootstrapApp({
|
|
30
27
|
cwd,
|
|
31
28
|
env,
|
|
32
29
|
});
|
|
33
|
-
let expressServer;
|
|
34
30
|
const shutdown = async () => {
|
|
35
|
-
await (0, utils_2.promiseAll)([
|
|
31
|
+
await (0, utils_2.promiseAll)([etoShutdown()]);
|
|
36
32
|
if (typeof global !== "undefined" && global?.gc) {
|
|
37
33
|
global.gc();
|
|
38
34
|
}
|
|
39
35
|
};
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
await shutdown();
|
|
45
|
-
return reject(err);
|
|
46
|
-
})
|
|
47
|
-
.on("listening", () => {
|
|
48
|
-
process.send?.(port);
|
|
49
|
-
resolve({
|
|
50
|
-
shutdown,
|
|
51
|
-
container,
|
|
52
|
-
port,
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
// TODO: fix that once we find the appropriate place to put this util
|
|
56
|
-
expressServer = utils_2.GracefulShutdownServer.create(server);
|
|
57
|
-
});
|
|
36
|
+
return {
|
|
37
|
+
shutdown,
|
|
38
|
+
container,
|
|
39
|
+
};
|
|
58
40
|
}
|
|
59
41
|
//# sourceMappingURL=bootstrap-app.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-app.js","sourceRoot":"","sources":["../../src/eto-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"bootstrap-app.js","sourceRoot":"","sources":["../../src/eto-test-runner-utils/bootstrap-app.ts"],"names":[],"mappings":";;;;;AA4BA,4BA6BC;AAzDD,wDAA8B;AAC9B,+BAA8B;AAE9B,mCAA+C;AAC/C,kDAAmD;AAEnD,0CAA0C;AAC1C,KAAK,UAAU,YAAY,CAAC,EAC1B,GAAG,EACH,GAAG,GAAG,EAAE,MACoC,EAAE;IAC9C,IAAA,6BAAqB,EAAC,GAAG,CAAC,CAAA;IAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAA;IAE3D,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,MAAM,OAAO,CAAC;QAC5C,SAAS,EAAE,IAAA,cAAO,EAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;KACzC,CAAC,CAAA;IAEF,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,kBAAO,GAAE,CAAA;IAE5E,OAAO;QACL,QAAQ;QACR,SAAS;QACT,IAAI,EAAE,IAAI;KACX,CAAA;AACH,CAAC;AAEM,KAAK,UAAU,QAAQ,CAAC,EAC7B,GAAG,EACH,GAAG,GAAG,EAAE,MACoC,EAAE;IAI9C,MAAM,EACJ,SAAS,EACT,QAAQ,EAAE,WAAW,GACtB,GAAG,MAAM,YAAY,CAAC;QACrB,GAAG;QACH,GAAG;KACJ,CAAC,CAAA;IAGF,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;QAC1B,MAAM,IAAA,kBAAU,EAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;QAEjC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,EAAE,EAAE,EAAE,CAAC;YAChD,MAAM,CAAC,EAAE,EAAE,CAAA;QACb,CAAC;IACH,CAAC,CAAA;IAED,OAAO;QACL,QAAQ;QACR,SAAS;KACV,CAAA;AAEH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-db.d.ts","sourceRoot":"","sources":["../../src/eto-test-runner-utils/use-db.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD;;GAEG;AACH,wBAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"use-db.d.ts","sourceRoot":"","sources":["../../src/eto-test-runner-utils/use-db.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD;;GAEG;AACH,wBAAsB,MAAM,2CAS3B;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,YAAY,iBAO5D;AAED;;GAEG;AACH,wBAAsB,SAAS,CAC7B,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,YAAY,iBAexB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eto-test-runner.d.ts","sourceRoot":"","sources":["../src/eto-test-runner.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"eto-test-runner.d.ts","sourceRoot":"","sources":["../src/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 -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.etoIntegrationTestRunner = etoIntegrationTestRunner;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// import {
|
|
5
|
+
// ContainerRegistrationKeys,
|
|
6
|
+
// // createEtoContainer,
|
|
7
|
+
// } from "@etohq/framework/utils"
|
|
8
|
+
// import { asValue } from "awilix"
|
|
6
9
|
const database_1 = require("./database");
|
|
7
|
-
const eto_test_runner_utils_1 = require("./eto-test-runner-utils");
|
|
8
10
|
function etoIntegrationTestRunner({ moduleName, dbName, etoConfigFile, schema = "public", env = {}, debug = false, inApp = false, testSuite, }) {
|
|
9
11
|
const tempName = parseInt(process.env.JEST_WORKER_ID || "1");
|
|
10
12
|
moduleName = moduleName ?? Math.random().toString(36).substring(7);
|
|
@@ -15,7 +17,7 @@ function etoIntegrationTestRunner({ moduleName, dbName, etoConfigFile, schema =
|
|
|
15
17
|
schema,
|
|
16
18
|
debug,
|
|
17
19
|
};
|
|
18
|
-
const cwd = etoConfigFile ?? process.cwd()
|
|
20
|
+
// const cwd = etoConfigFile ?? process.cwd()
|
|
19
21
|
let shutdown = async () => void 0;
|
|
20
22
|
const dbUtils = (0, database_1.dbTestUtilFactory)();
|
|
21
23
|
let globalContainer;
|
|
@@ -41,86 +43,94 @@ function etoIntegrationTestRunner({ moduleName, dbName, etoConfigFile, schema =
|
|
|
41
43
|
},
|
|
42
44
|
dbUtils,
|
|
43
45
|
};
|
|
44
|
-
let isFirstTime = true
|
|
45
|
-
const beforeAll_ = async () => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
46
|
+
// let isFirstTime = true
|
|
47
|
+
// const beforeAll_ = async () => {
|
|
48
|
+
// await configLoaderOverride(cwd, dbConfig)
|
|
49
|
+
// applyEnvVarsToProcess(env)
|
|
50
|
+
// const { logger, container, EtoAppLoader } = await import(
|
|
51
|
+
// "@etohq/framework"
|
|
52
|
+
// )
|
|
53
|
+
// const appLoader = new EtoAppLoader(
|
|
54
|
+
// {
|
|
55
|
+
// }
|
|
56
|
+
// )
|
|
57
|
+
// container.register({
|
|
58
|
+
// [ContainerRegistrationKeys.LOGGER]: asValue(logger),
|
|
59
|
+
// })
|
|
60
|
+
// try {
|
|
61
|
+
// console.log(`Creating database ${dbName}`)
|
|
62
|
+
// await dbUtils.create(dbName)
|
|
63
|
+
// dbUtils.pgConnection_ = await initDb()
|
|
64
|
+
// } catch (error) {
|
|
65
|
+
// console.error("Error initializing database", error?.message)
|
|
66
|
+
// throw error
|
|
67
|
+
// }
|
|
68
|
+
// console.log(`Migrating database with core migrations and links ${dbName}`)
|
|
69
|
+
// await migrateDatabase(appLoader)
|
|
70
|
+
// await syncLinks(appLoader, cwd, container)
|
|
71
|
+
// await clearInstances()
|
|
72
|
+
// let containerRes: EtoContainer = container
|
|
73
|
+
// let serverShutdownRes: () => any
|
|
74
|
+
// let portRes: number
|
|
75
|
+
// loadedApplication = await appLoader.load()
|
|
76
|
+
// try {
|
|
77
|
+
// const {
|
|
78
|
+
// shutdown = () => void 0,
|
|
79
|
+
// container: appContainer,
|
|
80
|
+
// port,
|
|
81
|
+
// } = await startApp({
|
|
82
|
+
// cwd,
|
|
83
|
+
// env,
|
|
84
|
+
// })
|
|
85
|
+
// containerRes = appContainer
|
|
86
|
+
// serverShutdownRes = shutdown
|
|
87
|
+
// portRes = port
|
|
88
|
+
// } catch (error) {
|
|
89
|
+
// console.error("Error starting the app", error?.message)
|
|
90
|
+
// throw error
|
|
91
|
+
// }
|
|
92
|
+
// /**
|
|
93
|
+
// * Run application migrations and sync links when inside
|
|
94
|
+
// * an application
|
|
95
|
+
// */
|
|
96
|
+
// if (inApp) {
|
|
97
|
+
// console.log(`Migrating database with core migrations and links ${dbName}`)
|
|
98
|
+
// await migrateDatabase(appLoader)
|
|
99
|
+
// await syncLinks(appLoader, cwd, containerRes)
|
|
100
|
+
// }
|
|
101
|
+
// const { default: axios } = (await import("axios")) as any
|
|
102
|
+
// const cancelTokenSource = axios.CancelToken.source()
|
|
103
|
+
// globalContainer = containerRes
|
|
104
|
+
// shutdown = async () => {
|
|
105
|
+
// await serverShutdownRes()
|
|
106
|
+
// cancelTokenSource.cancel("Request canceled by shutdown")
|
|
107
|
+
// }
|
|
108
|
+
// apiUtils = axios.create({
|
|
109
|
+
// baseURL: `http://localhost:${portRes}`,
|
|
110
|
+
// cancelToken: cancelTokenSource.token,
|
|
111
|
+
// })
|
|
112
|
+
// }
|
|
113
|
+
// const beforeEach_ = async () => {
|
|
114
|
+
// // The beforeAll already run everything, so lets not re run the loaders for the first iteration
|
|
115
|
+
// if (isFirstTime) {
|
|
116
|
+
// isFirstTime = false
|
|
117
|
+
// return
|
|
118
|
+
// }
|
|
119
|
+
// const container = options.getContainer()
|
|
120
|
+
// const copiedContainer = createEtoContainer({}, container)
|
|
121
|
+
// try {
|
|
122
|
+
// const { EtoAppLoader } = await import("@etohq/framework")
|
|
123
|
+
// // const data = generateModulesDefinition(CORE_MODULE_DEFINITIONS)
|
|
124
|
+
// const etoAppLoader = new EtoAppLoader({
|
|
125
|
+
// container: copiedContainer,
|
|
126
|
+
// modulesDefinition: CORE_MODULE_DEFINITIONS,
|
|
127
|
+
// })
|
|
128
|
+
// await etoAppLoader.runModulesLoader()
|
|
129
|
+
// } catch (error) {
|
|
130
|
+
// console.error("Error runner modules loaders", error?.message)
|
|
131
|
+
// throw error
|
|
132
|
+
// }
|
|
133
|
+
// }
|
|
124
134
|
const afterEach_ = async () => {
|
|
125
135
|
try {
|
|
126
136
|
await dbUtils.teardown({ schema });
|
|
@@ -131,8 +141,8 @@ function etoIntegrationTestRunner({ moduleName, dbName, etoConfigFile, schema =
|
|
|
131
141
|
}
|
|
132
142
|
};
|
|
133
143
|
return describe("", () => {
|
|
134
|
-
beforeAll(beforeAll_)
|
|
135
|
-
beforeEach(beforeEach_)
|
|
144
|
+
// beforeAll(beforeAll_)
|
|
145
|
+
// beforeEach(beforeEach_)
|
|
136
146
|
afterEach(afterEach_);
|
|
137
147
|
afterAll(async () => {
|
|
138
148
|
await dbUtils.shutdown(dbName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eto-test-runner.js","sourceRoot":"","sources":["../src/eto-test-runner.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"eto-test-runner.js","sourceRoot":"","sources":["../src/eto-test-runner.ts"],"names":[],"mappings":";;AAoCA,4DAiMC;AAlOD,WAAW;AACX,+BAA+B;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,UAAU;IACV,gEAAgE;IAEhE,wEAAwE;IACxE,8CAA8C;IAC9C,oCAAoC;IACpC,oDAAoD;IACpD,SAAS;IACT,4CAA4C;IAC5C,sBAAsB;IACtB,oEAAoE;IACpE,kBAAkB;IAClB,MAAM;IACN,IAAI;IAEJ,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;QAC5B,IAAI,CAAC;YACH,MAAM,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;QACpC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;YAC7D,MAAM,KAAK,CAAA;QACb,CAAC;IACH,CAAC,CAAA;IAED,OAAO,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE;QACvB,wBAAwB;QACxB,0BAA0B;QAC1B,SAAS,CAAC,UAAU,CAAC,CAAA;QACrB,QAAQ,CAAC,KAAK,IAAI,EAAE;YAClB,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;YAC9B,MAAM,QAAQ,EAAE,CAAA;QAClB,CAAC,CAAC,CAAA;QAEF,SAAS,CAAC,OAAQ,CAAC,CAAA;IACrB,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etohq/test-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Test utils for Eto",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Eto",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@etohq/framework": "^1.
|
|
28
|
+
"@etohq/framework": "^1.2.0",
|
|
29
29
|
"@mikro-orm/core": "5.9.7",
|
|
30
30
|
"@mikro-orm/knex": "5.9.7",
|
|
31
31
|
"@mikro-orm/migrations": "5.9.7",
|
|
@@ -41,13 +41,12 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@types/express": "^4.17.17",
|
|
43
43
|
"axios": "^0.21.4",
|
|
44
|
-
"express": "^4.21.0",
|
|
45
44
|
"get-port": "^5.1.1",
|
|
46
45
|
"randomatic": "^3.1.1"
|
|
47
46
|
},
|
|
48
47
|
"peerDependencies": {
|
|
49
|
-
"@etohq/eto": "^1.
|
|
50
|
-
"@etohq/framework": "^1.
|
|
48
|
+
"@etohq/eto": "^1.1.0",
|
|
49
|
+
"@etohq/framework": "^1.1.0",
|
|
51
50
|
"@mikro-orm/postgresql": "5.9.7",
|
|
52
51
|
"awilix": "^8.0.1"
|
|
53
52
|
},
|