@tramvai/test-integration-jest 1.9.0 → 1.9.4
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/lib/node-environment.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jest_environment_node_1 = tslib_1.__importDefault(require("jest-environment-node"));
|
|
5
|
+
const console_1 = tslib_1.__importDefault(require("console"));
|
|
6
|
+
const nativeConsole = new console_1.default.Console({ stdout: process.stdout, stderr: process.stderr });
|
|
5
7
|
module.exports = class CustomEnvironment extends jest_environment_node_1.default {
|
|
6
8
|
setup() {
|
|
7
9
|
const _super = Object.create(null, {
|
|
@@ -12,6 +14,7 @@ module.exports = class CustomEnvironment extends jest_environment_node_1.default
|
|
|
12
14
|
// пробрасываем дальше глобальные переменные в сами тесты, т.к. global в окружении изолировано от global в тестах
|
|
13
15
|
this.global.__tramvai_cli_mock = global.__tramvai_cli_mock;
|
|
14
16
|
this.global.app = global.app;
|
|
17
|
+
this.global.nativeConsole = nativeConsole;
|
|
15
18
|
});
|
|
16
19
|
}
|
|
17
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-environment.js","sourceRoot":"","sources":["../src/node-environment.ts"],"names":[],"mappings":";;;AAAA,0FAAoD;
|
|
1
|
+
{"version":3,"file":"node-environment.js","sourceRoot":"","sources":["../src/node-environment.ts"],"names":[],"mappings":";;;AAAA,0FAAoD;AACpD,8DAA8B;AAE9B,MAAM,aAAa,GAAG,IAAI,iBAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAE9F,MAAM,CAAC,OAAO,GAAG,MAAM,iBAAkB,SAAQ,+BAAe;IACxD,KAAK;;;;;YACT,MAAM,OAAM,KAAK,WAAE,CAAC;YAEpB,iHAAiH;YACjH,IAAI,CAAC,MAAM,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;YAC3D,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;YAC7B,IAAI,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC;QAC5C,CAAC;KAAA;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-integration-jest",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@jest/types": "^27.0.2",
|
|
20
20
|
"@tinkoff/utils": "^2.1.2",
|
|
21
|
-
"@tramvai/test-puppeteer": "1.9.
|
|
21
|
+
"@tramvai/test-puppeteer": "1.9.4",
|
|
22
22
|
"jest-environment-node": "^27.0.3",
|
|
23
23
|
"jest-watcher": "^27.0.2",
|
|
24
24
|
"tslib": "^2.0.3",
|
|
25
25
|
"utility-types": "^3.10.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@tramvai/cli": "1.9.
|
|
28
|
+
"@tramvai/cli": "1.9.4",
|
|
29
29
|
"puppeteer": "^10.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {},
|