@wdio/smoke-test-service 7.17.3 → 8.0.0-alpha.213
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/build/index.d.ts +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +7 -13
- package/package.json +7 -5
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import fs from 'fs';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
3
|
export default class SmokeService {
|
|
4
4
|
logFile: fs.WriteStream;
|
|
5
5
|
constructor();
|
|
@@ -21,6 +21,7 @@ declare class SmokeServiceLauncher {
|
|
|
21
21
|
constructor();
|
|
22
22
|
onPrepare(): void;
|
|
23
23
|
onWorkerStart(): void;
|
|
24
|
+
onWorkerEnd(): void;
|
|
24
25
|
onComplete(): void;
|
|
25
26
|
}
|
|
26
27
|
export declare const launcher: typeof SmokeServiceLauncher;
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AAGxB,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,aAAa;IACb,MAAM;IACN,WAAW;IACX,UAAU;IACV,SAAS;IACT,UAAU;IACV,aAAa;IACb,YAAY;IACZ,SAAS;IACT,UAAU;IACV,KAAK;IACL,YAAY;CACf;AAED,cAAM,oBAAoB;IACtB,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,SAAS;IACT,aAAa;IACb,WAAW;IACX,UAAU;CACb;AAED,eAAO,MAAM,QAAQ,6BAAuB,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.launcher = void 0;
|
|
7
|
-
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
class SmokeService {
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
export default class SmokeService {
|
|
10
4
|
constructor() {
|
|
11
|
-
this.logFile =
|
|
5
|
+
this.logFile = fs.createWriteStream(path.join(process.cwd(), 'tests', 'helpers', 'service.log'));
|
|
12
6
|
}
|
|
13
7
|
beforeSession() { this.logFile.write('beforeSession called\n'); } // eslint-disable-line no-console
|
|
14
8
|
before() { this.logFile.write('before called\n'); } // eslint-disable-line no-console
|
|
@@ -23,13 +17,13 @@ class SmokeService {
|
|
|
23
17
|
after() { this.logFile.write('after called\n'); } // eslint-disable-line no-console
|
|
24
18
|
afterSession() { this.logFile.write('afterSession called\n'); } // eslint-disable-line no-console
|
|
25
19
|
}
|
|
26
|
-
exports.default = SmokeService;
|
|
27
20
|
class SmokeServiceLauncher {
|
|
28
21
|
constructor() {
|
|
29
|
-
this.logFile =
|
|
22
|
+
this.logFile = fs.createWriteStream(path.join(process.cwd(), 'tests', 'helpers', 'launcher.log'));
|
|
30
23
|
}
|
|
31
24
|
onPrepare() { this.logFile.write('onPrepare called\n'); } // eslint-disable-line no-console
|
|
32
25
|
onWorkerStart() { this.logFile.write('onWorkerStart called\n'); } // eslint-disable-line no-console
|
|
26
|
+
onWorkerEnd() { this.logFile.write('onWorkerEnd called\n'); } // eslint-disable-line no-console
|
|
33
27
|
onComplete() { this.logFile.write('onComplete called\n'); } // eslint-disable-line no-console
|
|
34
28
|
}
|
|
35
|
-
|
|
29
|
+
export const launcher = SmokeServiceLauncher;
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/smoke-test-service",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha.213+c5fb6d57e",
|
|
4
4
|
"description": "A WebdriverIO utility to smoke test services for internal testing purposes.",
|
|
5
|
-
"author": "Christian Bromann <
|
|
5
|
+
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-service",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"main": "./build/index",
|
|
9
8
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
9
|
+
"node": "^16.13 || >=18"
|
|
11
10
|
},
|
|
12
11
|
"repository": {
|
|
13
12
|
"type": "git",
|
|
@@ -20,6 +19,9 @@
|
|
|
20
19
|
"publishConfig": {
|
|
21
20
|
"access": "public"
|
|
22
21
|
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"exports": "./build/index.js",
|
|
23
24
|
"types": "./build/index.d.ts",
|
|
24
|
-
"
|
|
25
|
+
"typeScriptVersion": "3.8.3",
|
|
26
|
+
"gitHead": "c5fb6d57e168d8bf939a5aa5c2ada5abaceec5eb"
|
|
25
27
|
}
|