@interopio/iocd-cli 0.0.46 → 0.0.48
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/dist/services/components/components.registry.js +15 -14
- package/dist/services/components/components.registry.js.map +1 -1
- package/dist/services/license-file.service.js +24 -2
- package/dist/services/license-file.service.js.map +1 -1
- package/dist/services/test.service.js +5 -0
- package/dist/services/test.service.js.map +1 -1
- package/dist/templates/tests/tests/package-lock.json +5 -11
- package/dist/templates/tests/tests/package.json +2 -6
- package/dist/templates/tests/tests/tests/sample.spec.ts +22 -24
- package/dist/templates/tests/tests/tsconfig.json +10 -10
- package/dist/templates/tests/tests/wdio.config.ts +29 -26
- package/package.json +1 -1
|
@@ -28,21 +28,22 @@ class ComponentsRegistry {
|
|
|
28
28
|
licenseRequired: false,
|
|
29
29
|
platforms: ['win32', 'darwin'],
|
|
30
30
|
description: 'A set of web-based demo applications showcasing various features of io.Connect Desktop',
|
|
31
|
-
},
|
|
32
|
-
'bbgv3': {
|
|
33
|
-
displayName: 'Bloomberg V3 Adapter',
|
|
34
|
-
name: 'bbgv3',
|
|
35
|
-
licenseRequired: true,
|
|
36
|
-
platforms: ['win32', 'darwin'],
|
|
37
|
-
description: 'Bloomberg Terminal V3 integration adapter',
|
|
38
|
-
},
|
|
39
|
-
'ppt': {
|
|
40
|
-
displayName: 'PowerPoint Adapter',
|
|
41
|
-
name: 'ppt',
|
|
42
|
-
licenseRequired: true,
|
|
43
|
-
platforms: ['win32'],
|
|
44
|
-
description: 'PowerPoint integration adapter for io.Connect Desktop',
|
|
45
31
|
}
|
|
32
|
+
// ,
|
|
33
|
+
// 'bbgv3': {
|
|
34
|
+
// displayName: 'Bloomberg V3 Adapter',
|
|
35
|
+
// name: 'bbgv3',
|
|
36
|
+
// licenseRequired: true,
|
|
37
|
+
// platforms: ['win32', 'darwin'],
|
|
38
|
+
// description: 'Bloomberg Terminal V3 integration adapter',
|
|
39
|
+
// },
|
|
40
|
+
// 'ppt': {
|
|
41
|
+
// displayName: 'PowerPoint Adapter',
|
|
42
|
+
// name: 'ppt',
|
|
43
|
+
// licenseRequired: true,
|
|
44
|
+
// platforms: ['win32'],
|
|
45
|
+
// description: 'PowerPoint integration adapter for io.Connect Desktop',
|
|
46
|
+
// }
|
|
46
47
|
};
|
|
47
48
|
static getComponents() {
|
|
48
49
|
return Object.values(this.COMPONENT_REGISTRY);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.registry.js","sourceRoot":"","sources":["../../../src/services/components/components.registry.ts"],"names":[],"mappings":";;;AAiBA;;;GAGG;AACH,MAAa,kBAAkB;IAGnB,MAAM,CAAC,kBAAkB,GAAwC;QACrE,IAAI,EAAE;YACF,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,IAAI;YACrB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,IAAI;SACjB;QACD,UAAU,EAAE;YACR,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,UAAU;YAChB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,wCAAwC;SACxD;QACD,OAAO,EAAE;YACL,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,OAAO;YACb,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,wFAAwF;SACxG;QACD,
|
|
1
|
+
{"version":3,"file":"components.registry.js","sourceRoot":"","sources":["../../../src/services/components/components.registry.ts"],"names":[],"mappings":";;;AAiBA;;;GAGG;AACH,MAAa,kBAAkB;IAGnB,MAAM,CAAC,kBAAkB,GAAwC;QACrE,IAAI,EAAE;YACF,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,IAA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,CAAC,QAAQ,CAAC,CAAC;aACtD,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,oBAAoB,CAAC,aAAqB,EAAE,QAA4B;QAClF,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;QAC9D,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACxE,CAAC;;AA5EL,gDA6EC"}
|
|
@@ -21,11 +21,12 @@ const logger = logger_1.Logger.getInstance("license-file.service");
|
|
|
21
21
|
class LicenseFileService {
|
|
22
22
|
/**
|
|
23
23
|
* Copy the license key to the iocd directory if it exists and copying is enabled
|
|
24
|
+
* @param ignoreSetting If true, will copy the license file regardless of config setting
|
|
24
25
|
*/
|
|
25
|
-
static async copyLicenseFile() {
|
|
26
|
+
static async copyLicenseFile(ignoreSetting = false) {
|
|
26
27
|
// Check if license copying is enabled (default: true)
|
|
27
28
|
const copyEnabled = config_service_1.ConfigManager.config.license?.copyLicenseToOutput ?? true;
|
|
28
|
-
if (!copyEnabled) {
|
|
29
|
+
if (!copyEnabled && !ignoreSetting) {
|
|
29
30
|
logger.debug("License copying is disabled in config - skipping license file copy");
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
@@ -49,6 +50,27 @@ class LicenseFileService {
|
|
|
49
50
|
throw error;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Remove the license file from the iocd directory if it exists
|
|
55
|
+
*/
|
|
56
|
+
static async removeLicenseFile() {
|
|
57
|
+
try {
|
|
58
|
+
// Get the iocd directory
|
|
59
|
+
const iocdDir = path_1.PathUtils.getIOCDResourcesDir();
|
|
60
|
+
const targetLicensePath = (0, path_2.join)(iocdDir, "license.key");
|
|
61
|
+
if (!(0, fs_1.existsSync)(targetLicensePath)) {
|
|
62
|
+
logger.debug(`License file not found at ${targetLicensePath} - nothing to remove`);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
logger.debug(`Removing license file from ${targetLicensePath}`);
|
|
66
|
+
(0, fs_1.unlinkSync)(targetLicensePath);
|
|
67
|
+
logger.info(`License file removed successfully from ${targetLicensePath}`);
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
logger.error(`Failed to remove license file: ${error}`);
|
|
71
|
+
throw error;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
52
74
|
}
|
|
53
75
|
exports.LicenseFileService = LicenseFileService;
|
|
54
76
|
//# sourceMappingURL=license-file.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-file.service.js","sourceRoot":"","sources":["../../src/services/license-file.service.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,wCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"license-file.service.js","sourceRoot":"","sources":["../../src/services/license-file.service.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,wCAA0C;AAC1C,2BAA2D;AAC3D,+BAA4B;AAC5B,uDAAmD;AACnD,4DAAwD;AAExD,MAAM,MAAM,GAAG,eAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;AAE1D;;;;;;;;;GASG;AACH,MAAa,kBAAkB;IAC3B;;;OAGG;IACH,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,gBAAyB,KAAK;QACvD,sDAAsD;QACtD,MAAM,WAAW,GAAG,8BAAa,CAAC,MAAM,CAAC,OAAO,EAAE,mBAAmB,IAAI,IAAI,CAAC;QAE9E,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa,EAAE,CAAC;YACjC,MAAM,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YACnF,OAAO;QACX,CAAC;QAED,MAAM,cAAc,GAAG,IAAI,gCAAc,EAAE,CA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C,IAAI,CAAC,0CAA0C,iBAAiB,EAAE,CAAC,CAAC;QAC/E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,CAAC,KAAK,CAAC,kCAAkC,KAAK,EAAE,CAAC,CAAC;YACxD,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CACJ;AA9DD,gDA8DC"}
|
|
@@ -39,6 +39,7 @@ const fs = __importStar(require("fs"));
|
|
|
39
39
|
const path = __importStar(require("path"));
|
|
40
40
|
const path_1 = require("../utils/path");
|
|
41
41
|
const child_process_1 = require("child_process");
|
|
42
|
+
const license_file_service_1 = require("./license-file.service");
|
|
42
43
|
/**
|
|
43
44
|
* TestService handles running automated tests for the io.Connect Desktop application.
|
|
44
45
|
*
|
|
@@ -70,8 +71,12 @@ class TestService {
|
|
|
70
71
|
if (!fs.existsSync(binaryPath)) {
|
|
71
72
|
throw new Error(`Binary not found at ${binaryPath}. Please run 'iocd dev' first to create the executable.`);
|
|
72
73
|
}
|
|
74
|
+
// copy license file to binary directory if it exists
|
|
75
|
+
await license_file_service_1.LicenseFileService.copyLicenseFile(true);
|
|
73
76
|
// Run the test script
|
|
74
77
|
await this.runTestScript(testsDir, binaryPath);
|
|
78
|
+
// remove license file after tests (as tests ignore the copy setting)
|
|
79
|
+
await license_file_service_1.LicenseFileService.removeLicenseFile();
|
|
75
80
|
}
|
|
76
81
|
/**
|
|
77
82
|
* Get the tests directory path
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.service.js","sourceRoot":"","sources":["../../src/services/test.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAyC;AACzC,uCAAyB;AACzB,2CAA6B;AAC7B,wCAA0C;AAC1C,iDAAsC;
|
|
1
|
+
{"version":3,"file":"test.service.js","sourceRoot":"","sources":["../../src/services/test.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4C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AAC;qBAAM,CAAC;oBACJ,MAAM,CAAC,IAAI,KAAK,CAAC,0BAA0B,IAAI,EAAE,CAAC,CAAC,CAAC;gBACxD,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACtB,MAAM,CAAC,GAAG,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAtID,kCAsIC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@interopio/wdio-iocd-service": "^0.1.
|
|
12
|
+
"@interopio/wdio-iocd-service": "^0.1.1",
|
|
13
13
|
"@types/node": "^24.10.0",
|
|
14
14
|
"@wdio/cli": "^8.46.0",
|
|
15
15
|
"@wdio/local-runner": "^8.46.0",
|
|
@@ -248,9 +248,9 @@
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
"node_modules/@interopio/wdio-iocd-service": {
|
|
251
|
-
"version": "0.1.
|
|
252
|
-
"resolved": "https://registry.npmjs.org/@interopio/wdio-iocd-service/-/wdio-iocd-service-0.1.
|
|
253
|
-
"integrity": "sha512-
|
|
251
|
+
"version": "0.1.1",
|
|
252
|
+
"resolved": "https://registry.npmjs.org/@interopio/wdio-iocd-service/-/wdio-iocd-service-0.1.1.tgz",
|
|
253
|
+
"integrity": "sha512-piJVeDnUfjjPeFunlYQHnfNs7F/NUwhxSBy9ZC5HS/anLGpTayojgs4BeC3dw179aEA3wTqSyLZBJNA5ZlYFCw==",
|
|
254
254
|
"dev": true,
|
|
255
255
|
"license": "MIT",
|
|
256
256
|
"dependencies": {
|
|
@@ -650,7 +650,6 @@
|
|
|
650
650
|
"integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==",
|
|
651
651
|
"dev": true,
|
|
652
652
|
"license": "MIT",
|
|
653
|
-
"peer": true,
|
|
654
653
|
"dependencies": {
|
|
655
654
|
"undici-types": "~7.16.0"
|
|
656
655
|
}
|
|
@@ -1053,7 +1052,6 @@
|
|
|
1053
1052
|
"integrity": "sha512-t4NaNTvJZci3Xv/yUZPH4eTL0hxrVTf5wdwNnYIBrzMnlRDbNefjQ0P7FM7ZjQCLaH92AEH6t/XanUId7Webug==",
|
|
1054
1053
|
"dev": true,
|
|
1055
1054
|
"license": "MIT",
|
|
1056
|
-
"peer": true,
|
|
1057
1055
|
"dependencies": {
|
|
1058
1056
|
"@types/node": "^22.2.0"
|
|
1059
1057
|
},
|
|
@@ -1170,7 +1168,6 @@
|
|
|
1170
1168
|
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
|
|
1171
1169
|
"dev": true,
|
|
1172
1170
|
"license": "MIT",
|
|
1173
|
-
"peer": true,
|
|
1174
1171
|
"dependencies": {
|
|
1175
1172
|
"fast-deep-equal": "^3.1.1",
|
|
1176
1173
|
"fast-json-stable-stringify": "^2.0.0",
|
|
@@ -2363,8 +2360,7 @@
|
|
|
2363
2360
|
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1400418.tgz",
|
|
2364
2361
|
"integrity": "sha512-U8j75zDOXF8IP3o0Cgb7K4tFA9uUHEOru2Wx64+EUqL4LNOh9dRe1i8WKR1k3mSpjcCe3aIkTDvEwq0YkI4hfw==",
|
|
2365
2362
|
"dev": true,
|
|
2366
|
-
"license": "BSD-3-Clause"
|
|
2367
|
-
"peer": true
|
|
2363
|
+
"license": "BSD-3-Clause"
|
|
2368
2364
|
},
|
|
2369
2365
|
"node_modules/diff": {
|
|
2370
2366
|
"version": "7.0.0",
|
|
@@ -6606,7 +6602,6 @@
|
|
|
6606
6602
|
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
|
6607
6603
|
"dev": true,
|
|
6608
6604
|
"license": "Apache-2.0",
|
|
6609
|
-
"peer": true,
|
|
6610
6605
|
"bin": {
|
|
6611
6606
|
"tsc": "bin/tsc",
|
|
6612
6607
|
"tsserver": "bin/tsserver"
|
|
@@ -6867,7 +6862,6 @@
|
|
|
6867
6862
|
"integrity": "sha512-SyrSVpygEdPzvgpapVZRQCy8XIOecadp56bPQewpfSfo9ypB6wdOUkx13NBu2ANDlUAtJX7KaLJpTtywVHNlVw==",
|
|
6868
6863
|
"dev": true,
|
|
6869
6864
|
"license": "MIT",
|
|
6870
|
-
"peer": true,
|
|
6871
6865
|
"dependencies": {
|
|
6872
6866
|
"@types/node": "^22.2.0",
|
|
6873
6867
|
"@wdio/config": "8.46.0",
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tests",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
4
|
"license": "ISC",
|
|
6
|
-
"author": "",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"main": "basic.test.js",
|
|
9
5
|
"scripts": {
|
|
10
6
|
"test": "npx wdio run ./wdio.config.ts"
|
|
11
7
|
},
|
|
12
8
|
"devDependencies": {
|
|
13
|
-
"@interopio/wdio-iocd-service": "^0.1.
|
|
9
|
+
"@interopio/wdio-iocd-service": "^0.1.1",
|
|
14
10
|
"@types/node": "^24.10.0",
|
|
15
11
|
"@wdio/cli": "^8.46.0",
|
|
16
12
|
"@wdio/local-runner": "^8.46.0",
|
|
@@ -20,4 +16,4 @@
|
|
|
20
16
|
"typescript": "^5.9.3",
|
|
21
17
|
"webdriverio": "^8.46.0"
|
|
22
18
|
}
|
|
23
|
-
}
|
|
19
|
+
}
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
describe('Example usage of @interopio/wdio-iocd-service', () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
it('should have access to browser.io()', async () => {
|
|
3
|
+
console.log('test start');
|
|
4
|
+
// A fully working io.Connect Desktop client
|
|
5
|
+
const io = await browser.io();
|
|
6
|
+
console.log('io object ready', io.version);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
it('should raise a test notifications, and then navigate to notifications panel', async () => {
|
|
14
|
-
const io = await browser.io();
|
|
15
|
-
await io.notifications.configure({ enable: true });
|
|
16
|
-
await io.notifications.raise({
|
|
17
|
-
title: 'Test Notification title',
|
|
18
|
-
body: 'Test Notification body',
|
|
19
|
-
toastExpiry: 999999,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
await browser.switchToLaunchpad();
|
|
8
|
+
expect(io).toHaveAttribute('appManager');
|
|
9
|
+
expect(io).toHaveAttribute('contexts');
|
|
10
|
+
expect(io).toHaveAttribute('channels');
|
|
11
|
+
});
|
|
23
12
|
|
|
24
|
-
|
|
13
|
+
it('should raise a test notifications, and then navigate to notifications panel', async () => {
|
|
14
|
+
const io = await browser.io();
|
|
15
|
+
await io.notifications.configure({ enable: true });
|
|
16
|
+
await io.notifications.raise({
|
|
17
|
+
title: 'Test Notification title',
|
|
18
|
+
body: 'Test Notification body',
|
|
19
|
+
toastExpiry: 999999,
|
|
20
|
+
});
|
|
25
21
|
|
|
26
|
-
|
|
22
|
+
await browser.switchToLaunchpad();
|
|
23
|
+
await browser.$('.notifications-button button').waitAndClick();
|
|
24
|
+
await browser.switchToNotificationPanel();
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
await browser.pause(2000);
|
|
27
|
+
});
|
|
30
28
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"moduleResolution": "Node",
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"types": ["node", "@wdio/globals/types", "@wdio/mocha-framework"]
|
|
9
|
+
},
|
|
10
|
+
"include": ["wdio.config.ts", "tests/**/*.ts"]
|
|
11
|
+
}
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IOCDBaseConfiguration,
|
|
3
|
+
IOCDService,
|
|
4
|
+
} from '@interopio/wdio-iocd-service';
|
|
2
5
|
|
|
3
6
|
export const config: WebdriverIO.Config = {
|
|
4
|
-
|
|
7
|
+
...IOCDBaseConfiguration,
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
// Services
|
|
10
|
+
services: IOCDService(),
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
// Capabilities
|
|
13
|
+
capabilities: [
|
|
14
|
+
{
|
|
15
|
+
browserName: 'iocd',
|
|
16
|
+
'wdio:specs': ['./tests/**/*.spec.ts'],
|
|
17
|
+
'iocd:options': {
|
|
18
|
+
binary: '%BINARY_PATH%',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
],
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
// WDIO Options
|
|
24
|
+
logLevel: 'warn',
|
|
25
|
+
framework: 'mocha',
|
|
26
|
+
reporters: ['spec'],
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
28
|
+
// TypeScript Autocompile
|
|
29
|
+
autoCompileOpts: {
|
|
30
|
+
autoCompile: true,
|
|
31
|
+
tsNodeOpts: {
|
|
32
|
+
transpileOnly: true,
|
|
33
|
+
project: './tsconfig.json',
|
|
32
34
|
},
|
|
33
|
-
}
|
|
35
|
+
},
|
|
36
|
+
};
|