@wdio/jasmine-framework 7.20.8-alpha.219 → 7.24.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.d.ts +12 -5
- package/build/index.d.ts.map +1 -1
- package/build/index.js +73 -43
- package/build/reporter.d.ts +1 -1
- package/build/reporter.d.ts.map +1 -1
- package/build/reporter.js +11 -7
- package/build/types.js +2 -1
- package/package.json +11 -14
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="expect-webdriverio/types/expect-webdriverio" />
|
|
2
3
|
import Jasmine from 'jasmine';
|
|
3
|
-
import { EventEmitter } from '
|
|
4
|
+
import { EventEmitter } from 'events';
|
|
4
5
|
import type { Options, Services, Capabilities } from '@wdio/types';
|
|
5
6
|
import type { JasmineOpts as jasmineNodeOpts, ResultHandlerPayload, FrameworkMessage, FormattedMessage } from './types';
|
|
6
7
|
declare type HooksArray = {
|
|
@@ -23,13 +24,13 @@ declare class JasmineAdapter {
|
|
|
23
24
|
private _hasTests;
|
|
24
25
|
private _lastTest?;
|
|
25
26
|
private _lastSpec?;
|
|
26
|
-
private _jrunner
|
|
27
|
+
private _jrunner?;
|
|
27
28
|
constructor(_cid: string, _config: WebdriverIOJasmineConfig, _specs: string[], _capabilities: Capabilities.RemoteCapabilities, reporter: EventEmitter);
|
|
28
29
|
init(): Promise<this>;
|
|
29
|
-
_loadFiles():
|
|
30
|
+
_loadFiles(): void;
|
|
30
31
|
_grep(suite: jasmine.Suite): void;
|
|
31
32
|
hasTests(): boolean;
|
|
32
|
-
run(): Promise<
|
|
33
|
+
run(): Promise<unknown>;
|
|
33
34
|
customSpecFilter(spec: jasmine.Spec): boolean;
|
|
34
35
|
/**
|
|
35
36
|
* Hooks which are added as true Jasmine hooks need to call done() to notify async
|
|
@@ -45,7 +46,7 @@ declare const adapterFactory: {
|
|
|
45
46
|
};
|
|
46
47
|
export default adapterFactory;
|
|
47
48
|
export { JasmineAdapter, adapterFactory };
|
|
48
|
-
export * from './types
|
|
49
|
+
export * from './types';
|
|
49
50
|
declare type jasmine = typeof Jasmine;
|
|
50
51
|
declare global {
|
|
51
52
|
/**
|
|
@@ -107,5 +108,11 @@ declare global {
|
|
|
107
108
|
interface JasmineOpts extends jasmineNodeOpts {
|
|
108
109
|
}
|
|
109
110
|
}
|
|
111
|
+
namespace jasmine {
|
|
112
|
+
interface Matchers<T> extends ExpectWebdriverIO.Matchers<any, T> {
|
|
113
|
+
}
|
|
114
|
+
interface AsyncMatchers<T, U> extends ExpectWebdriverIO.Matchers<Promise<void>, T> {
|
|
115
|
+
}
|
|
116
|
+
}
|
|
110
117
|
}
|
|
111
118
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAGlE,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAYvH,aAAK,UAAU,GAAG;KACb,CAAC,IAAI,MAAM,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE;CACvF,CAAA;AAED,UAAU,wBAAyB,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,UAAU,CAAC,EAAE,UAAU;IAC7F,WAAW,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QAClB,UAAU,WAAY,SAAQ,eAAe;SAAG;KACnD;IAED,UAAU,OAAO,CAAC;QACd,UAAU,QAAQ,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;SAAG;QAEnE,UAAU,aAAa,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAAG;KACxF;CACJ"}
|
package/build/index.js
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
/// <reference types="expect-webdriverio/jasmine" />
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.adapterFactory = exports.JasmineAdapter = void 0;
|
|
22
|
+
const jasmine_1 = __importDefault(require("jasmine"));
|
|
23
|
+
const utils_1 = require("@wdio/utils");
|
|
24
|
+
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
25
|
+
const reporter_1 = __importDefault(require("./reporter"));
|
|
7
26
|
const INTERFACES = {
|
|
8
27
|
bdd: ['beforeAll', 'beforeEach', 'it', 'xit', 'fit', 'afterEach', 'afterAll']
|
|
9
28
|
};
|
|
10
29
|
const TEST_INTERFACES = ['it', 'fit', 'xit'];
|
|
11
30
|
const NOOP = function noop() { };
|
|
12
31
|
const DEFAULT_TIMEOUT_INTERVAL = 60000;
|
|
13
|
-
const
|
|
14
|
-
const log = logger('@wdio/jasmine-framework');
|
|
32
|
+
const log = (0, logger_1.default)('@wdio/jasmine-framework');
|
|
15
33
|
/**
|
|
16
34
|
* Jasmine runner
|
|
17
35
|
*/
|
|
@@ -23,28 +41,28 @@ class JasmineAdapter {
|
|
|
23
41
|
this._capabilities = _capabilities;
|
|
24
42
|
this._totalTests = 0;
|
|
25
43
|
this._hasTests = true;
|
|
26
|
-
this._jrunner = new Jasmine({});
|
|
27
44
|
this._jasmineOpts = Object.assign({
|
|
28
45
|
cleanStack: true
|
|
29
46
|
}, (this._config.jasmineOpts ||
|
|
30
47
|
// @ts-expect-error legacy option
|
|
31
48
|
this._config.jasmineNodeOpts));
|
|
32
|
-
this._reporter = new
|
|
49
|
+
this._reporter = new reporter_1.default(reporter, {
|
|
33
50
|
cid: this._cid,
|
|
34
51
|
specs: this._specs,
|
|
35
52
|
cleanStack: this._jasmineOpts.cleanStack
|
|
36
53
|
});
|
|
37
54
|
this._hasTests = true;
|
|
38
|
-
this._jrunner.exitOnCompletion = false;
|
|
39
55
|
}
|
|
40
56
|
async init() {
|
|
41
57
|
const self = this;
|
|
58
|
+
this._jrunner = new jasmine_1.default({});
|
|
42
59
|
const { jasmine } = this._jrunner;
|
|
43
60
|
// @ts-ignore outdated
|
|
44
61
|
const jasmineEnv = jasmine.getEnv();
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
this._jrunner.projectBaseDir = '';
|
|
63
|
+
// @ts-ignore outdated
|
|
64
|
+
this._jrunner.specDir = '';
|
|
65
|
+
this._jrunner.addSpecFiles(this._specs);
|
|
48
66
|
// @ts-ignore only way to hack timeout into jasmine
|
|
49
67
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = this._jasmineOpts.defaultTimeoutInterval || DEFAULT_TIMEOUT_INTERVAL;
|
|
50
68
|
jasmineEnv.addReporter(this._reporter);
|
|
@@ -83,7 +101,6 @@ class JasmineAdapter {
|
|
|
83
101
|
failedExpectations: [],
|
|
84
102
|
deprecationWarnings: [],
|
|
85
103
|
status: '',
|
|
86
|
-
debugLogs: null,
|
|
87
104
|
...(error ? { error } : {})
|
|
88
105
|
};
|
|
89
106
|
this._reporter.emit('hook:' + eventType, hook);
|
|
@@ -102,13 +119,13 @@ class JasmineAdapter {
|
|
|
102
119
|
beforeHook.push(emitHookEvent(fnName, 'start'));
|
|
103
120
|
afterHook.push(emitHookEvent(fnName, 'end'));
|
|
104
121
|
}
|
|
105
|
-
runTestInFiberContext(isTest, isTest ? this._config.beforeTest : beforeHook, hookArgsFn, isTest ? this._config.afterTest : afterHook, hookArgsFn, fnName, this._cid);
|
|
122
|
+
(0, utils_1.runTestInFiberContext)(isTest, isTest ? this._config.beforeTest : beforeHook, hookArgsFn, isTest ? this._config.afterTest : afterHook, hookArgsFn, fnName, this._cid);
|
|
106
123
|
});
|
|
107
124
|
/**
|
|
108
125
|
* for a clean stdout we need to avoid that Jasmine initialises the
|
|
109
126
|
* default reporter
|
|
110
127
|
*/
|
|
111
|
-
|
|
128
|
+
jasmine_1.default.prototype.configureDefaultReporter = NOOP;
|
|
112
129
|
/**
|
|
113
130
|
* wrap Suite and Spec prototypes to get access to their data
|
|
114
131
|
*/
|
|
@@ -126,14 +143,22 @@ class JasmineAdapter {
|
|
|
126
143
|
self._lastTest.start = new Date().getTime();
|
|
127
144
|
executeMock.apply(this, args);
|
|
128
145
|
};
|
|
129
|
-
|
|
146
|
+
this._loadFiles();
|
|
130
147
|
/**
|
|
131
|
-
*
|
|
148
|
+
* import and set options for `expect-webdriverio` assertion lib once
|
|
149
|
+
* the framework was initiated so that it can detect the environment
|
|
132
150
|
*/
|
|
133
|
-
|
|
151
|
+
const { setOptions } = require('expect-webdriverio');
|
|
152
|
+
setOptions({
|
|
153
|
+
wait: this._config.waitforTimeout,
|
|
154
|
+
interval: this._config.waitforInterval, // interval between attempts
|
|
155
|
+
});
|
|
134
156
|
return this;
|
|
135
157
|
}
|
|
136
|
-
|
|
158
|
+
_loadFiles() {
|
|
159
|
+
if (!this._jrunner) {
|
|
160
|
+
throw new Error('Jasmine not initiate yet');
|
|
161
|
+
}
|
|
137
162
|
try {
|
|
138
163
|
if (Array.isArray(this._jasmineOpts.requires)) {
|
|
139
164
|
// @ts-ignore outdated types
|
|
@@ -144,9 +169,9 @@ class JasmineAdapter {
|
|
|
144
169
|
this._jrunner.addHelperFiles(this._jasmineOpts.helpers);
|
|
145
170
|
}
|
|
146
171
|
// @ts-ignore outdated types
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
172
|
+
this._jrunner.loadRequires();
|
|
173
|
+
this._jrunner.loadHelpers();
|
|
174
|
+
this._jrunner.loadSpecs();
|
|
150
175
|
// @ts-ignore outdated types
|
|
151
176
|
this._grep(this._jrunner.env.topSuite());
|
|
152
177
|
this._hasTests = this._totalTests > 0;
|
|
@@ -173,24 +198,26 @@ class JasmineAdapter {
|
|
|
173
198
|
return this._hasTests;
|
|
174
199
|
}
|
|
175
200
|
async run() {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
201
|
+
const result = await new Promise((resolve, reject) => {
|
|
202
|
+
if (!this._jrunner) {
|
|
203
|
+
return reject(new Error('Jasmine not initiate yet'));
|
|
204
|
+
}
|
|
205
|
+
// @ts-expect-error
|
|
206
|
+
this._jrunner.env.beforeAll(this.wrapHook('beforeSuite'));
|
|
207
|
+
// @ts-expect-error
|
|
208
|
+
this._jrunner.env.afterAll(this.wrapHook('afterSuite'));
|
|
209
|
+
this._jrunner.onComplete(() => resolve(this._reporter.getFailedCount()));
|
|
210
|
+
this._jrunner.execute();
|
|
211
|
+
});
|
|
212
|
+
await (0, utils_1.executeHooksWithArgs)('after', this._config.after, [result, this._capabilities, this._specs]);
|
|
183
213
|
return result;
|
|
184
214
|
}
|
|
185
215
|
customSpecFilter(spec) {
|
|
186
216
|
const { grep, invertGrep } = this._jasmineOpts;
|
|
187
217
|
const grepMatch = !grep || spec.getFullName().match(new RegExp(grep)) !== null;
|
|
188
218
|
if (grepMatch === Boolean(invertGrep)) {
|
|
189
|
-
// @ts-
|
|
190
|
-
|
|
191
|
-
// @ts-expect-error internal method
|
|
192
|
-
spec.pend('grep');
|
|
193
|
-
}
|
|
219
|
+
// @ts-ignore outdated types
|
|
220
|
+
spec.pend('grep');
|
|
194
221
|
return false;
|
|
195
222
|
}
|
|
196
223
|
return true;
|
|
@@ -199,29 +226,31 @@ class JasmineAdapter {
|
|
|
199
226
|
* Hooks which are added as true Jasmine hooks need to call done() to notify async
|
|
200
227
|
*/
|
|
201
228
|
wrapHook(hookName) {
|
|
202
|
-
return () => executeHooksWithArgs(hookName, this._config[hookName], [this.prepareMessage(hookName)]).catch((e) => {
|
|
229
|
+
return () => (0, utils_1.executeHooksWithArgs)(hookName, this._config[hookName], [this.prepareMessage(hookName)]).catch((e) => {
|
|
203
230
|
log.info(`Error in ${hookName} hook: ${e.stack.slice(7)}`);
|
|
204
231
|
});
|
|
205
232
|
}
|
|
206
233
|
prepareMessage(hookName) {
|
|
234
|
+
var _a, _b;
|
|
207
235
|
const params = { type: hookName };
|
|
208
236
|
switch (hookName) {
|
|
209
237
|
case 'beforeSuite':
|
|
210
238
|
case 'afterSuite':
|
|
211
239
|
params.payload = Object.assign({
|
|
212
|
-
file: this._jrunner
|
|
240
|
+
file: (_a = this._jrunner) === null || _a === void 0 ? void 0 : _a.specFiles[0]
|
|
213
241
|
}, this._lastSpec);
|
|
214
242
|
break;
|
|
215
243
|
case 'beforeTest':
|
|
216
244
|
case 'afterTest':
|
|
217
245
|
params.payload = Object.assign({
|
|
218
|
-
file: this._jrunner
|
|
246
|
+
file: (_b = this._jrunner) === null || _b === void 0 ? void 0 : _b.specFiles[0]
|
|
219
247
|
}, this._lastTest);
|
|
220
248
|
break;
|
|
221
249
|
}
|
|
222
250
|
return this.formatMessage(params);
|
|
223
251
|
}
|
|
224
252
|
formatMessage(params) {
|
|
253
|
+
var _a;
|
|
225
254
|
let message = {
|
|
226
255
|
type: params.type
|
|
227
256
|
};
|
|
@@ -234,7 +263,7 @@ class JasmineAdapter {
|
|
|
234
263
|
message.error = params.payload.failedExpectations[0];
|
|
235
264
|
}
|
|
236
265
|
if (params.payload.id && params.payload.id.startsWith('spec')) {
|
|
237
|
-
message.parent = this._lastSpec
|
|
266
|
+
message.parent = (_a = this._lastSpec) === null || _a === void 0 ? void 0 : _a.description;
|
|
238
267
|
message.passed = params.payload.failedExpectations.length === 0;
|
|
239
268
|
}
|
|
240
269
|
if (params.type === 'afterTest') {
|
|
@@ -278,13 +307,14 @@ class JasmineAdapter {
|
|
|
278
307
|
};
|
|
279
308
|
}
|
|
280
309
|
}
|
|
310
|
+
exports.JasmineAdapter = JasmineAdapter;
|
|
281
311
|
const adapterFactory = {};
|
|
312
|
+
exports.adapterFactory = adapterFactory;
|
|
282
313
|
adapterFactory.init = async function (...args) {
|
|
283
314
|
// @ts-ignore pass along parameters
|
|
284
315
|
const adapter = new JasmineAdapter(...args);
|
|
285
316
|
const instance = await adapter.init();
|
|
286
317
|
return instance;
|
|
287
318
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
export * from './types.js';
|
|
319
|
+
exports.default = adapterFactory;
|
|
320
|
+
__exportStar(require("./types"), exports);
|
package/build/reporter.d.ts
CHANGED
package/build/reporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAe,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAMlF,MAAM,CAAC,OAAO,OAAO,eAAe;IAY5B,OAAO,CAAC,SAAS;IAXd,YAAY,CAAC,EAAE,UAAU,CAAA;IAEhC,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,UAAU,CAAa;gBAGnB,SAAS,EAAE,YAAY,EAC/B,MAAM,EAAE,eAAe;IAO3B,YAAY,CAAE,KAAK,EAAE,OAAO,CAAC,WAAW;IAwBxC,WAAW,CAAE,IAAI,EAAE,OAAO,CAAC,UAAU;IAyBrC,QAAQ,CAAE,IAAI,EAAE,OAAO,CAAC,UAAU;IAiClC,SAAS,CAAE,KAAK,EAAE,OAAO,CAAC,WAAW;IA8CrC,IAAI,CAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,SAAS;IAwBpD,cAAc;IAId,mBAAmB,CAAE,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;IAIlE,UAAU,CAAE,KAAK,EAAE,OAAO,CAAC,iBAAiB;CAU/C"}
|
package/build/reporter.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 logger_1 = __importDefault(require("@wdio/logger"));
|
|
7
|
+
const log = (0, logger_1.default)('@wdio/jasmine-framework');
|
|
3
8
|
const STACKTRACE_FILTER = /(node_modules(\/|\\)(\w+)*|@wdio\/sync\/(build|src)|- - - - -)/g;
|
|
4
|
-
|
|
9
|
+
class JasmineReporter {
|
|
5
10
|
constructor(_reporter, params) {
|
|
6
11
|
this._reporter = _reporter;
|
|
7
12
|
this._parent = [];
|
|
@@ -105,8 +110,7 @@ export default class JasmineReporter {
|
|
|
105
110
|
deprecationWarnings: [],
|
|
106
111
|
passedExpectations: [],
|
|
107
112
|
status: 'unknown',
|
|
108
|
-
pendingReason: ''
|
|
109
|
-
debugLogs: null
|
|
113
|
+
pendingReason: ''
|
|
110
114
|
});
|
|
111
115
|
this.specDone({
|
|
112
116
|
id,
|
|
@@ -118,8 +122,7 @@ export default class JasmineReporter {
|
|
|
118
122
|
status: 'failed',
|
|
119
123
|
duration: null,
|
|
120
124
|
properties: {},
|
|
121
|
-
pendingReason: ''
|
|
122
|
-
debugLogs: null
|
|
125
|
+
pendingReason: ''
|
|
123
126
|
});
|
|
124
127
|
}
|
|
125
128
|
this._parent.pop();
|
|
@@ -164,3 +167,4 @@ export default class JasmineReporter {
|
|
|
164
167
|
return error;
|
|
165
168
|
}
|
|
166
169
|
}
|
|
170
|
+
exports.default = JasmineReporter;
|
package/build/types.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/jasmine-framework",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.24.0",
|
|
4
4
|
"description": "A WebdriverIO plugin. Adapter for Jasmine testing framework.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-jasmine-framework",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"
|
|
9
|
-
"exports": "./build/index.js",
|
|
10
|
-
"types": "./build/index.d.ts",
|
|
11
|
-
"typeScriptVersion": "3.8.3",
|
|
8
|
+
"main": "./build/index",
|
|
12
9
|
"engines": {
|
|
13
|
-
"node": "
|
|
10
|
+
"node": ">=12.0.0"
|
|
14
11
|
},
|
|
15
12
|
"repository": {
|
|
16
13
|
"type": "git",
|
|
@@ -28,20 +25,20 @@
|
|
|
28
25
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
29
26
|
},
|
|
30
27
|
"dependencies": {
|
|
31
|
-
"@types/jasmine": "
|
|
28
|
+
"@types/jasmine": "3.10.3",
|
|
32
29
|
"@types/node": "^18.0.0",
|
|
33
|
-
"@wdio/globals": "7.20.7",
|
|
34
30
|
"@wdio/logger": "7.19.0",
|
|
35
|
-
"@wdio/types": "7.
|
|
36
|
-
"@wdio/utils": "7.
|
|
37
|
-
"expect-webdriverio": "^
|
|
38
|
-
"jasmine": "
|
|
31
|
+
"@wdio/types": "7.24.0",
|
|
32
|
+
"@wdio/utils": "7.24.0",
|
|
33
|
+
"expect-webdriverio": "^3.0.0",
|
|
34
|
+
"jasmine": "3.10.0"
|
|
39
35
|
},
|
|
40
36
|
"peerDependencies": {
|
|
41
|
-
"@wdio/cli": "
|
|
37
|
+
"@wdio/cli": "^7.0.0"
|
|
42
38
|
},
|
|
43
39
|
"publishConfig": {
|
|
44
40
|
"access": "public"
|
|
45
41
|
},
|
|
46
|
-
"
|
|
42
|
+
"types": "./build/index.d.ts",
|
|
43
|
+
"gitHead": "cf88ab19bcd0d097ebf00fb812fcbfd1caef9705"
|
|
47
44
|
}
|