@wdio/smoke-test-service 7.19.0 → 8.0.0-alpha.239
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 +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +6 -13
- package/package.json +6 -4
package/build/index.d.ts
CHANGED
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,14 +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
|
|
33
26
|
onWorkerEnd() { this.logFile.write('onWorkerEnd called\n'); } // eslint-disable-line no-console
|
|
34
27
|
onComplete() { this.logFile.write('onComplete called\n'); } // eslint-disable-line no-console
|
|
35
28
|
}
|
|
36
|
-
|
|
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.239+00a68ded0",
|
|
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",
|
|
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": "00a68ded03fea7b5f348eff0ca1d9b771f90fa75"
|
|
25
27
|
}
|