@wdio/smoke-test-cjs-service 8.0.0-alpha.558
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/LICENSE-MIT +20 -0
- package/README.md +6 -0
- package/build/index.d.ts +5 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +10 -0
- package/build/launcher.d.ts +11 -0
- package/build/launcher.d.ts.map +1 -0
- package/build/launcher.js +18 -0
- package/build/service.d.ts +19 -0
- package/build/service.d.ts.map +1 -0
- package/build/service.js +26 -0
- package/package.json +28 -0
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) OpenJS Foundation and other contributors
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
'Software'), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
WebdriverIO Smoke Test Service CJS
|
|
2
|
+
==================================
|
|
3
|
+
|
|
4
|
+
> A WebdriverIO utility to smoke test services for internal testing purposes.
|
|
5
|
+
|
|
6
|
+
__Note:__ This service is for internal use only and is not recommended to use in production test suites. It is used by the WebbdriverIO project for testing purposes.
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAA;AACpC,OAAO,OAAO,MAAM,cAAc,CAAA;AAElC,eAAO,MAAM,QAAQ,iBAAW,CAAA;AAChC,eAAe,OAAO,CAAA"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.launcher = void 0;
|
|
7
|
+
const launcher_js_1 = __importDefault(require("./launcher.js"));
|
|
8
|
+
const service_js_1 = __importDefault(require("./service.js"));
|
|
9
|
+
exports.launcher = launcher_js_1.default;
|
|
10
|
+
exports.default = service_js_1.default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
export default class SmokeServiceLauncher {
|
|
4
|
+
logFile: fs.WriteStream;
|
|
5
|
+
constructor();
|
|
6
|
+
onPrepare(): void;
|
|
7
|
+
onWorkerStart(): void;
|
|
8
|
+
onWorkerEnd(): void;
|
|
9
|
+
onComplete(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=launcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AAGxB,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACrC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,SAAS;IACT,aAAa;IACb,WAAW;IACX,UAAU;CACb"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
class SmokeServiceLauncher {
|
|
9
|
+
logFile;
|
|
10
|
+
constructor() {
|
|
11
|
+
this.logFile = node_fs_1.default.createWriteStream(node_path_1.default.join(process.cwd(), 'tests', 'helpers', 'launcher.log'));
|
|
12
|
+
}
|
|
13
|
+
onPrepare() { this.logFile.write('onPrepare called\n'); } // eslint-disable-line no-console
|
|
14
|
+
onWorkerStart() { this.logFile.write('onWorkerStart called\n'); } // eslint-disable-line no-console
|
|
15
|
+
onWorkerEnd() { this.logFile.write('onWorkerEnd called\n'); } // eslint-disable-line no-console
|
|
16
|
+
onComplete() { this.logFile.write('onComplete called\n'); } // eslint-disable-line no-console
|
|
17
|
+
}
|
|
18
|
+
exports.default = SmokeServiceLauncher;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
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
|
+
}
|
|
19
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.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"}
|
package/build/service.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
class SmokeService {
|
|
9
|
+
logFile;
|
|
10
|
+
constructor() {
|
|
11
|
+
this.logFile = node_fs_1.default.createWriteStream(node_path_1.default.join(process.cwd(), 'tests', 'helpers', 'service.log'));
|
|
12
|
+
}
|
|
13
|
+
beforeSession() { this.logFile.write('beforeSession called\n'); } // eslint-disable-line no-console
|
|
14
|
+
before() { this.logFile.write('before called\n'); } // eslint-disable-line no-console
|
|
15
|
+
beforeSuite() { this.logFile.write('beforeSuite called\n'); } // eslint-disable-line no-console
|
|
16
|
+
beforeHook() { this.logFile.write('beforeHook called\n'); } // eslint-disable-line no-console
|
|
17
|
+
afterHook() { this.logFile.write('afterHook called\n'); } // eslint-disable-line no-console
|
|
18
|
+
beforeTest() { this.logFile.write('beforeTest called\n'); } // eslint-disable-line no-console
|
|
19
|
+
beforeCommand() { this.logFile.write('beforeCommand called\n'); } // eslint-disable-line no-console
|
|
20
|
+
afterCommand() { this.logFile.write('afterCommand called\n'); } // eslint-disable-line no-console
|
|
21
|
+
afterTest() { this.logFile.write('afterTest called\n'); } // eslint-disable-line no-console
|
|
22
|
+
afterSuite() { this.logFile.write('afterSuite called\n'); } // eslint-disable-line no-console
|
|
23
|
+
after() { this.logFile.write('after called\n'); } // eslint-disable-line no-console
|
|
24
|
+
afterSession() { this.logFile.write('afterSession called\n'); } // eslint-disable-line no-console
|
|
25
|
+
}
|
|
26
|
+
exports.default = SmokeService;
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wdio/smoke-test-cjs-service",
|
|
3
|
+
"version": "8.0.0-alpha.558+9156ec0f4",
|
|
4
|
+
"description": "A WebdriverIO utility to smoke test services for internal testing purposes.",
|
|
5
|
+
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
|
+
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-service",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": "^16.13 || >=18"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git://github.com/webdriverio/webdriverio.git",
|
|
14
|
+
"directory": "packages/wdio-smoke-test-service"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"type": "commonjs",
|
|
24
|
+
"main": "./build/index.js",
|
|
25
|
+
"types": "./build/index.d.ts",
|
|
26
|
+
"typeScriptVersion": "3.8.3",
|
|
27
|
+
"gitHead": "9156ec0f422b7e784ea148e569fe423ba21a0355"
|
|
28
|
+
}
|