@wdio/smoke-test-service 9.0.0-alpha.9 → 9.0.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/build/index.js +94 -33
- package/package.json +6 -5
- package/build/index.d.ts +0 -31
- package/build/index.d.ts.map +0 -1
- package/cjs/package.json +0 -5
- /package/{LICENSE-MIT → LICENSE} +0 -0
package/build/index.js
CHANGED
|
@@ -1,33 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
logFile;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import url from "node:url";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
var __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
6
|
+
var SmokeService = class {
|
|
7
|
+
logFile;
|
|
8
|
+
constructor() {
|
|
9
|
+
this.logFile = fs.createWriteStream(path.resolve(__dirname, "..", "..", "..", "tests", "helpers", "service.log"));
|
|
10
|
+
}
|
|
11
|
+
beforeSession() {
|
|
12
|
+
this.logFile.write("beforeSession called\n");
|
|
13
|
+
}
|
|
14
|
+
// eslint-disable-line no-console
|
|
15
|
+
before() {
|
|
16
|
+
this.logFile.write("before called\n");
|
|
17
|
+
}
|
|
18
|
+
// eslint-disable-line no-console
|
|
19
|
+
beforeSuite() {
|
|
20
|
+
this.logFile.write("beforeSuite called\n");
|
|
21
|
+
}
|
|
22
|
+
// eslint-disable-line no-console
|
|
23
|
+
beforeHook() {
|
|
24
|
+
this.logFile.write("beforeHook called\n");
|
|
25
|
+
}
|
|
26
|
+
// eslint-disable-line no-console
|
|
27
|
+
afterHook() {
|
|
28
|
+
this.logFile.write("afterHook called\n");
|
|
29
|
+
}
|
|
30
|
+
// eslint-disable-line no-console
|
|
31
|
+
beforeTest() {
|
|
32
|
+
this.logFile.write("beforeTest called\n");
|
|
33
|
+
}
|
|
34
|
+
// eslint-disable-line no-console
|
|
35
|
+
beforeCommand() {
|
|
36
|
+
this.logFile.write("beforeCommand called\n");
|
|
37
|
+
}
|
|
38
|
+
// eslint-disable-line no-console
|
|
39
|
+
afterCommand() {
|
|
40
|
+
this.logFile.write("afterCommand called\n");
|
|
41
|
+
}
|
|
42
|
+
// eslint-disable-line no-console
|
|
43
|
+
afterTest() {
|
|
44
|
+
this.logFile.write("afterTest called\n");
|
|
45
|
+
}
|
|
46
|
+
// eslint-disable-line no-console
|
|
47
|
+
afterSuite() {
|
|
48
|
+
this.logFile.write("afterSuite called\n");
|
|
49
|
+
}
|
|
50
|
+
// eslint-disable-line no-console
|
|
51
|
+
after() {
|
|
52
|
+
this.logFile.write("after called\n");
|
|
53
|
+
}
|
|
54
|
+
// eslint-disable-line no-console
|
|
55
|
+
afterSession() {
|
|
56
|
+
this.logFile.write("afterSession called\n");
|
|
57
|
+
}
|
|
58
|
+
// eslint-disable-line no-console
|
|
59
|
+
beforeAssertion() {
|
|
60
|
+
this.logFile.write("beforeAssertion called\n");
|
|
61
|
+
}
|
|
62
|
+
// eslint-disable-line no-console
|
|
63
|
+
afterAssertion() {
|
|
64
|
+
this.logFile.write("afterAssertion called\n");
|
|
65
|
+
}
|
|
66
|
+
// eslint-disable-line no-console
|
|
67
|
+
};
|
|
68
|
+
var SmokeServiceLauncher = class {
|
|
69
|
+
logFile;
|
|
70
|
+
constructor() {
|
|
71
|
+
this.logFile = fs.createWriteStream(path.resolve(__dirname, "..", "..", "..", "tests", "helpers", "launcher.log"));
|
|
72
|
+
}
|
|
73
|
+
onPrepare() {
|
|
74
|
+
this.logFile.write("onPrepare called\n");
|
|
75
|
+
}
|
|
76
|
+
// eslint-disable-line no-console
|
|
77
|
+
onWorkerStart() {
|
|
78
|
+
this.logFile.write("onWorkerStart called\n");
|
|
79
|
+
}
|
|
80
|
+
// eslint-disable-line no-console
|
|
81
|
+
onWorkerEnd() {
|
|
82
|
+
this.logFile.write("onWorkerEnd called\n");
|
|
83
|
+
}
|
|
84
|
+
// eslint-disable-line no-console
|
|
85
|
+
onComplete() {
|
|
86
|
+
this.logFile.write("onComplete called\n");
|
|
87
|
+
}
|
|
88
|
+
// eslint-disable-line no-console
|
|
89
|
+
};
|
|
90
|
+
var launcher = SmokeServiceLauncher;
|
|
91
|
+
export {
|
|
92
|
+
SmokeService as default,
|
|
93
|
+
launcher
|
|
94
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/smoke-test-service",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4",
|
|
4
4
|
"description": "A WebdriverIO utility to smoke test services for internal testing purposes.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-service",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git://github.com/webdriverio/webdriverio.git",
|
|
13
|
+
"url": "git+https://github.com/webdriverio/webdriverio.git",
|
|
14
14
|
"directory": "packages/wdio-smoke-test-service"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [],
|
|
@@ -23,12 +23,13 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"types": "./build/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
|
-
".":
|
|
27
|
-
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./build/index.js"
|
|
28
|
+
}
|
|
28
29
|
},
|
|
29
30
|
"typeScriptVersion": "3.8.3",
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"@types/node": "^20.1.0"
|
|
32
33
|
},
|
|
33
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "1f3d6f781391548e8672e768e72b3d5c499a3aa7"
|
|
34
35
|
}
|
package/build/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import fs from 'node:fs';
|
|
3
|
-
export default class SmokeService {
|
|
4
|
-
logFile: fs.WriteStream;
|
|
5
|
-
constructor();
|
|
6
|
-
beforeSession(): void;
|
|
7
|
-
before(): void;
|
|
8
|
-
beforeSuite(): void;
|
|
9
|
-
beforeHook(): void;
|
|
10
|
-
afterHook(): void;
|
|
11
|
-
beforeTest(): void;
|
|
12
|
-
beforeCommand(): void;
|
|
13
|
-
afterCommand(): void;
|
|
14
|
-
afterTest(): void;
|
|
15
|
-
afterSuite(): void;
|
|
16
|
-
after(): void;
|
|
17
|
-
afterSession(): void;
|
|
18
|
-
beforeAssertion(): void;
|
|
19
|
-
afterAssertion(): void;
|
|
20
|
-
}
|
|
21
|
-
declare class SmokeServiceLauncher {
|
|
22
|
-
logFile: fs.WriteStream;
|
|
23
|
-
constructor();
|
|
24
|
-
onPrepare(): void;
|
|
25
|
-
onWorkerStart(): void;
|
|
26
|
-
onWorkerEnd(): void;
|
|
27
|
-
onComplete(): void;
|
|
28
|
-
}
|
|
29
|
-
export declare const launcher: typeof SmokeServiceLauncher;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;IACZ,eAAe;IACf,cAAc;CACjB;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/cjs/package.json
DELETED
/package/{LICENSE-MIT → LICENSE}
RENAMED
|
File without changes
|