@wdio/smoke-test-service 9.0.0-alpha.78 → 9.0.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/build/index.js CHANGED
@@ -1,33 +1,92 @@
1
- import fs from 'node:fs';
2
- import path from 'node:path';
3
- export default class SmokeService {
4
- logFile;
5
- constructor() {
6
- this.logFile = fs.createWriteStream(path.join(process.cwd(), 'tests', 'helpers', 'service.log'));
7
- }
8
- beforeSession() { this.logFile.write('beforeSession called\n'); } // eslint-disable-line no-console
9
- before() { this.logFile.write('before called\n'); } // eslint-disable-line no-console
10
- beforeSuite() { this.logFile.write('beforeSuite called\n'); } // eslint-disable-line no-console
11
- beforeHook() { this.logFile.write('beforeHook called\n'); } // eslint-disable-line no-console
12
- afterHook() { this.logFile.write('afterHook called\n'); } // eslint-disable-line no-console
13
- beforeTest() { this.logFile.write('beforeTest called\n'); } // eslint-disable-line no-console
14
- beforeCommand() { this.logFile.write('beforeCommand called\n'); } // eslint-disable-line no-console
15
- afterCommand() { this.logFile.write('afterCommand called\n'); } // eslint-disable-line no-console
16
- afterTest() { this.logFile.write('afterTest called\n'); } // eslint-disable-line no-console
17
- afterSuite() { this.logFile.write('afterSuite called\n'); } // eslint-disable-line no-console
18
- after() { this.logFile.write('after called\n'); } // eslint-disable-line no-console
19
- afterSession() { this.logFile.write('afterSession called\n'); } // eslint-disable-line no-console
20
- beforeAssertion() { this.logFile.write('beforeAssertion called\n'); } // eslint-disable-line no-console
21
- afterAssertion() { this.logFile.write('afterAssertion called\n'); } // eslint-disable-line no-console
22
- }
23
- class SmokeServiceLauncher {
24
- logFile;
25
- constructor() {
26
- this.logFile = fs.createWriteStream(path.join(process.cwd(), 'tests', 'helpers', 'launcher.log'));
27
- }
28
- onPrepare() { this.logFile.write('onPrepare called\n'); } // eslint-disable-line no-console
29
- onWorkerStart() { this.logFile.write('onWorkerStart called\n'); } // eslint-disable-line no-console
30
- onWorkerEnd() { this.logFile.write('onWorkerEnd called\n'); } // eslint-disable-line no-console
31
- onComplete() { this.logFile.write('onComplete called\n'); } // eslint-disable-line no-console
32
- }
33
- export const launcher = SmokeServiceLauncher;
1
+ // src/index.ts
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+ var SmokeService = class {
5
+ logFile;
6
+ constructor() {
7
+ this.logFile = fs.createWriteStream(path.join(process.cwd(), "tests", "helpers", "service.log"));
8
+ }
9
+ beforeSession() {
10
+ this.logFile.write("beforeSession called\n");
11
+ }
12
+ // eslint-disable-line no-console
13
+ before() {
14
+ this.logFile.write("before called\n");
15
+ }
16
+ // eslint-disable-line no-console
17
+ beforeSuite() {
18
+ this.logFile.write("beforeSuite called\n");
19
+ }
20
+ // eslint-disable-line no-console
21
+ beforeHook() {
22
+ this.logFile.write("beforeHook called\n");
23
+ }
24
+ // eslint-disable-line no-console
25
+ afterHook() {
26
+ this.logFile.write("afterHook called\n");
27
+ }
28
+ // eslint-disable-line no-console
29
+ beforeTest() {
30
+ this.logFile.write("beforeTest called\n");
31
+ }
32
+ // eslint-disable-line no-console
33
+ beforeCommand() {
34
+ this.logFile.write("beforeCommand called\n");
35
+ }
36
+ // eslint-disable-line no-console
37
+ afterCommand() {
38
+ this.logFile.write("afterCommand called\n");
39
+ }
40
+ // eslint-disable-line no-console
41
+ afterTest() {
42
+ this.logFile.write("afterTest called\n");
43
+ }
44
+ // eslint-disable-line no-console
45
+ afterSuite() {
46
+ this.logFile.write("afterSuite called\n");
47
+ }
48
+ // eslint-disable-line no-console
49
+ after() {
50
+ this.logFile.write("after called\n");
51
+ }
52
+ // eslint-disable-line no-console
53
+ afterSession() {
54
+ this.logFile.write("afterSession called\n");
55
+ }
56
+ // eslint-disable-line no-console
57
+ beforeAssertion() {
58
+ this.logFile.write("beforeAssertion called\n");
59
+ }
60
+ // eslint-disable-line no-console
61
+ afterAssertion() {
62
+ this.logFile.write("afterAssertion called\n");
63
+ }
64
+ // eslint-disable-line no-console
65
+ };
66
+ var SmokeServiceLauncher = class {
67
+ logFile;
68
+ constructor() {
69
+ this.logFile = fs.createWriteStream(path.join(process.cwd(), "tests", "helpers", "launcher.log"));
70
+ }
71
+ onPrepare() {
72
+ this.logFile.write("onPrepare called\n");
73
+ }
74
+ // eslint-disable-line no-console
75
+ onWorkerStart() {
76
+ this.logFile.write("onWorkerStart called\n");
77
+ }
78
+ // eslint-disable-line no-console
79
+ onWorkerEnd() {
80
+ this.logFile.write("onWorkerEnd called\n");
81
+ }
82
+ // eslint-disable-line no-console
83
+ onComplete() {
84
+ this.logFile.write("onComplete called\n");
85
+ }
86
+ // eslint-disable-line no-console
87
+ };
88
+ var launcher = SmokeServiceLauncher;
89
+ export {
90
+ SmokeService as default,
91
+ launcher
92
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/smoke-test-service",
3
- "version": "9.0.0-alpha.78+fee2f8a88",
3
+ "version": "9.0.0",
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",
@@ -23,12 +23,13 @@
23
23
  "type": "module",
24
24
  "types": "./build/index.d.ts",
25
25
  "exports": {
26
- ".": "./build/index.js",
27
- "./package.json": "./package.json"
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": "fee2f8a88d132537795eaf144abf1a7e242f99ff"
34
+ "gitHead": "957693463371a4cb329395dcdbce8fb0c930ab93"
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
@@ -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
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@wdio/smoke-test-service-cjs",
3
- "type": "commonjs",
4
- "private": true
5
- }
File without changes