vest 5.2.3 → 5.2.4
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/cjs/SuiteSerializer.development.js +2 -45
- package/dist/cjs/SuiteSerializer.development.js.map +1 -1
- package/dist/cjs/SuiteSerializer.production.js +1 -1
- package/dist/cjs/SuiteSerializer.production.js.map +1 -1
- package/dist/cjs/vest.development.js +3 -2
- package/dist/cjs/vest.development.js.map +1 -1
- package/dist/cjs/vest.production.js +1 -1
- package/dist/cjs/vest.production.js.map +1 -1
- package/dist/es/SuiteSerializer.development.js +2 -45
- package/dist/es/SuiteSerializer.development.js.map +1 -1
- package/dist/es/SuiteSerializer.production.js +1 -1
- package/dist/es/SuiteSerializer.production.js.map +1 -1
- package/dist/es/vest.development.js +3 -2
- package/dist/es/vest.development.js.map +1 -1
- package/dist/es/vest.production.js +1 -1
- package/dist/es/vest.production.js.map +1 -1
- package/dist/umd/SuiteSerializer.development.js +6 -48
- package/dist/umd/SuiteSerializer.development.js.map +1 -1
- package/dist/umd/SuiteSerializer.production.js +1 -1
- package/dist/umd/SuiteSerializer.production.js.map +1 -1
- package/dist/umd/vest.development.js +3 -2
- package/dist/umd/vest.development.js.map +1 -1
- package/dist/umd/vest.production.js +1 -1
- package/dist/umd/vest.production.js.map +1 -1
- package/package.json +6 -6
- package/types/SuiteSerializer.d.ts.map +1 -1
|
@@ -1,64 +1,22 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SuiteSerializer = {}, global["
|
|
5
|
-
})(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vestjs-runtime')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'vestjs-runtime'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SuiteSerializer = {}, global["vestjs-runtime"]));
|
|
5
|
+
})(this, (function (exports, vestjsRuntime) { 'use strict';
|
|
6
6
|
|
|
7
7
|
class SuiteSerializer {
|
|
8
8
|
static serialize(suite) {
|
|
9
9
|
const dump = Object.assign(Object.assign({}, suite.dump()), { output: undefined });
|
|
10
|
-
return vestjsRuntime.IsolateSerializer.serialize(dump
|
|
10
|
+
return vestjsRuntime.IsolateSerializer.serialize(dump);
|
|
11
11
|
}
|
|
12
12
|
static deserialize(serialized) {
|
|
13
|
-
return vestjsRuntime.IsolateSerializer.deserialize(serialized
|
|
13
|
+
return vestjsRuntime.IsolateSerializer.deserialize(serialized);
|
|
14
14
|
}
|
|
15
15
|
static resume(suite, root) {
|
|
16
16
|
const suiteRoot = SuiteSerializer.deserialize(root);
|
|
17
17
|
suite.resume(suiteRoot);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
const testMiniMap = {
|
|
21
|
-
asyncTest: '_at',
|
|
22
|
-
fieldName: 'fN',
|
|
23
|
-
groupName: 'gN',
|
|
24
|
-
message: 'ms',
|
|
25
|
-
severity: 'sv',
|
|
26
|
-
status: 'st',
|
|
27
|
-
testFn: '_tf', // testFn is not serialized
|
|
28
|
-
};
|
|
29
|
-
const focusMiniMap = {
|
|
30
|
-
focusMode: 'fM',
|
|
31
|
-
match: 'm',
|
|
32
|
-
matchAll: 'mA',
|
|
33
|
-
};
|
|
34
|
-
const MiniMap = {
|
|
35
|
-
keys: {
|
|
36
|
-
data: vestUtils.assign({}, testMiniMap, focusMiniMap),
|
|
37
|
-
},
|
|
38
|
-
values: {
|
|
39
|
-
status: {
|
|
40
|
-
CANCELED: 'C',
|
|
41
|
-
DONE: 'D',
|
|
42
|
-
FAILED: 'F',
|
|
43
|
-
INITIAL: 'I',
|
|
44
|
-
OMITTED: 'O',
|
|
45
|
-
PASSING: 'P',
|
|
46
|
-
PENDING: 'PE',
|
|
47
|
-
SKIPPED: 'S',
|
|
48
|
-
UNTESTED: 'U',
|
|
49
|
-
WARNING: 'W',
|
|
50
|
-
},
|
|
51
|
-
$type: {
|
|
52
|
-
Each: 'E',
|
|
53
|
-
Focused: 'F',
|
|
54
|
-
Group: 'G',
|
|
55
|
-
OmitWhen: 'OW',
|
|
56
|
-
SkipWhen: 'SW',
|
|
57
|
-
Suite: 'S',
|
|
58
|
-
Test: 'T',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
20
|
|
|
63
21
|
exports.SuiteSerializer = SuiteSerializer;
|
|
64
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuiteSerializer.development.js","sources":["../../src/exports/SuiteSerializer.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"SuiteSerializer.development.js","sources":["../../src/exports/SuiteSerializer.ts"],"sourcesContent":["import { IsolateSerializer } from 'vestjs-runtime';\n\nimport { TIsolateSuite } from 'IsolateSuite';\nimport { TFieldName, TGroupName } from 'SuiteResultTypes';\nimport { Suite } from 'SuiteTypes';\n\nexport class SuiteSerializer {\n static serialize(suite: Suite<TFieldName, TGroupName>) {\n const dump = { ...suite.dump(), output: undefined };\n\n return IsolateSerializer.serialize(dump);\n }\n\n static deserialize(\n serialized: string | TIsolateSuite | Record<string, any>,\n ): TIsolateSuite {\n return IsolateSerializer.deserialize(serialized) as TIsolateSuite;\n }\n\n static resume(\n suite: Suite<TFieldName, TGroupName>,\n root: string | TIsolateSuite | Record<string, any>,\n ): void {\n const suiteRoot = SuiteSerializer.deserialize(root);\n\n suite.resume(suiteRoot);\n }\n}\n"],"names":["IsolateSerializer"],"mappings":";;;;;;QAMa,eAAe,CAAA;MAC1B,OAAO,SAAS,CAAC,KAAoC,EAAA;UACnD,MAAM,IAAI,GAAQ,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAK,CAAC,IAAI,EAAE,CAAA,EAAA,EAAE,MAAM,EAAE,SAAS,EAAA,CAAE,CAAC;EAEpD,QAAA,OAAOA,+BAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;OAC1C;MAED,OAAO,WAAW,CAChB,UAAwD,EAAA;EAExD,QAAA,OAAOA,+BAAiB,CAAC,WAAW,CAAC,UAAU,CAAkB,CAAC;OACnE;EAED,IAAA,OAAO,MAAM,CACX,KAAoC,EACpC,IAAkD,EAAA;UAElD,MAAM,SAAS,GAAG,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;EAEpD,QAAA,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;OACzB;EACF;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("vestjs-runtime")):"function"==typeof define&&define.amd?define(["exports","vestjs-runtime"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self).SuiteSerializer={},e["vestjs-runtime"])}(this,(function(e,i){"use strict";class t{static serialize(e){const t=Object.assign(Object.assign({},e.dump()),{output:void 0});return i.IsolateSerializer.serialize(t)}static deserialize(e){return i.IsolateSerializer.deserialize(e)}static resume(e,i){const s=t.deserialize(i);e.resume(s)}}e.SuiteSerializer=t}));
|
|
2
2
|
//# sourceMappingURL=SuiteSerializer.production.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuiteSerializer.production.js","sources":["../../src/exports/SuiteSerializer.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"SuiteSerializer.production.js","sources":["../../src/exports/SuiteSerializer.ts"],"sourcesContent":["import { IsolateSerializer } from 'vestjs-runtime';\n\nimport { TIsolateSuite } from 'IsolateSuite';\nimport { TFieldName, TGroupName } from 'SuiteResultTypes';\nimport { Suite } from 'SuiteTypes';\n\nexport class SuiteSerializer {\n static serialize(suite: Suite<TFieldName, TGroupName>) {\n const dump = { ...suite.dump(), output: undefined };\n\n return IsolateSerializer.serialize(dump);\n }\n\n static deserialize(\n serialized: string | TIsolateSuite | Record<string, any>,\n ): TIsolateSuite {\n return IsolateSerializer.deserialize(serialized) as TIsolateSuite;\n }\n\n static resume(\n suite: Suite<TFieldName, TGroupName>,\n root: string | TIsolateSuite | Record<string, any>,\n ): void {\n const suiteRoot = SuiteSerializer.deserialize(root);\n\n suite.resume(suiteRoot);\n }\n}\n"],"names":["SuiteSerializer","static","suite","dump","Object","assign","output","undefined","IsolateSerializer","serialize","serialized","deserialize","root","suiteRoot","resume"],"mappings":"8TAMaA,EACXC,iBAAiBC,GACf,MAAMC,EAAYC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAAAH,EAAMC,QAAM,CAAEG,YAAQC,IAExC,OAAOC,EAAiBA,kBAACC,UAAUN,EACpC,CAEDF,mBACES,GAEA,OAAOF,EAAiBA,kBAACG,YAAYD,EACtC,CAEDT,cACEC,EACAU,GAEA,MAAMC,EAAYb,EAAgBW,YAAYC,GAE9CV,EAAMY,OAAOD,EACd"}
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
}
|
|
30
30
|
static getOptionalField(suite, fieldName) {
|
|
31
31
|
var _a;
|
|
32
|
-
return (_a = suite
|
|
32
|
+
return (_a = SuiteOptionalFields.getOptionalFields(suite)[fieldName]) !== null && _a !== void 0 ? _a : {};
|
|
33
33
|
}
|
|
34
34
|
static getOptionalFields(suite) {
|
|
35
|
-
|
|
35
|
+
var _a, _b;
|
|
36
|
+
return (_b = (_a = suite.data) === null || _a === void 0 ? void 0 : _a.optional) !== null && _b !== void 0 ? _b : {};
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|