@atlantjs/backend 11.0.21 → 11.0.22
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/package.json +1 -1
- package/setup-test/test-setup.js +9 -8
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/setup-test/test-setup.js
CHANGED
|
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
require("reflect-metadata");
|
|
4
4
|
// allow require() to load TypeScript source files during tests
|
|
5
5
|
require("ts-node/register/transpile-only");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const dotenv_1 = require("dotenv");
|
|
6
9
|
const setup_1 = require("../setup");
|
|
7
10
|
(0, setup_1.synthesizePaths)();
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// }
|
|
15
|
-
// }
|
|
11
|
+
const envConfig = (0, dotenv_1.parse)((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, "..", "..", "..", "..", ".env.test")));
|
|
12
|
+
for (const key in envConfig) {
|
|
13
|
+
if (!envConfig[key].startsWith("$")) {
|
|
14
|
+
process.env[key] = envConfig[key];
|
|
15
|
+
}
|
|
16
|
+
}
|