testeranto 0.166.0 → 0.167.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/dist/common/src/Pure.js +2 -2
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
- package/dist/common/src/lib/basebuilder.js +9 -7
- package/dist/common/src/lib/core.test/MockCore.js +17 -15
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Pure.js +2 -2
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
- package/dist/module/src/lib/basebuilder.js +9 -7
- package/dist/module/src/lib/core.test/MockCore.js +17 -15
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/src/lib/index.d.ts +0 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/Pure.ts +2 -2
- package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +1 -1
- package/src/lib/basebuilder.ts +9 -9
- package/src/lib/core.test/MockCore.ts +26 -19
- package/src/lib/index.ts +1 -1
- package/testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs +113 -0
- package/testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs +669 -0
- package/testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs +252 -0
- package/testeranto/bundles/node/allTests/metafile.json +28 -28
- package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +11 -8
- package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +2 -2
- package/testeranto/bundles/pure/allTests/chunk-4ULDTZFU.mjs +666 -0
- package/testeranto/bundles/pure/allTests/chunk-5SBJWHSZ.mjs +200 -0
- package/testeranto/bundles/pure/allTests/metafile.json +33 -33
- package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +2 -2
- package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +2 -2
- package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +2 -2
- package/testeranto/bundles/web/allTests/chunk-46E6YGGN.mjs +847 -0
- package/testeranto/bundles/web/allTests/metafile.json +10 -10
- package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +1 -1
- package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +2 -2
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -0
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -12
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +2 -5
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -0
- package/testeranto/reports/allTests/summary.json +2 -2
- package/tsc.log +236 -234
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
PM,
|
|
4
|
+
TesterantoCore,
|
|
5
|
+
defaultTestResourceRequirement
|
|
6
|
+
} from "./chunk-IDCUSTSM.mjs";
|
|
7
|
+
|
|
8
|
+
// src/PM/node.ts
|
|
9
|
+
import net from "net";
|
|
10
|
+
import fs from "fs";
|
|
11
|
+
import path from "path";
|
|
12
|
+
var fPaths = [];
|
|
13
|
+
var PM_Node = class extends PM {
|
|
14
|
+
constructor(t, ipcFile) {
|
|
15
|
+
super();
|
|
16
|
+
this.testResourceConfiguration = t;
|
|
17
|
+
this.client = net.createConnection(ipcFile, () => {
|
|
18
|
+
return;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
start() {
|
|
22
|
+
throw new Error("DEPRECATED");
|
|
23
|
+
}
|
|
24
|
+
stop() {
|
|
25
|
+
throw new Error("stop not implemented.");
|
|
26
|
+
}
|
|
27
|
+
send(command, ...argz) {
|
|
28
|
+
const key = Math.random().toString();
|
|
29
|
+
if (!this.client) {
|
|
30
|
+
console.error(
|
|
31
|
+
`Tried to send "${command} (${argz})" but the test has not been started and the IPC client is not established. Exiting as failure!`
|
|
32
|
+
);
|
|
33
|
+
process.exit(-1);
|
|
34
|
+
}
|
|
35
|
+
return new Promise((res) => {
|
|
36
|
+
const myListener = (event) => {
|
|
37
|
+
const x = JSON.parse(event);
|
|
38
|
+
if (x.key === key) {
|
|
39
|
+
process.removeListener("message", myListener);
|
|
40
|
+
res(x.payload);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
process.addListener("message", myListener);
|
|
44
|
+
this.client.write(JSON.stringify([command, ...argz, key]));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async launchSideCar(n) {
|
|
48
|
+
return this.send(
|
|
49
|
+
"launchSideCar",
|
|
50
|
+
n,
|
|
51
|
+
this.testResourceConfiguration.name
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
stopSideCar(n) {
|
|
55
|
+
return this.send(
|
|
56
|
+
"stopSideCar",
|
|
57
|
+
n,
|
|
58
|
+
this.testResourceConfiguration.name
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
async pages() {
|
|
62
|
+
return this.send("pages", ...arguments);
|
|
63
|
+
}
|
|
64
|
+
waitForSelector(p, s) {
|
|
65
|
+
return this.send("waitForSelector", ...arguments);
|
|
66
|
+
}
|
|
67
|
+
closePage(p) {
|
|
68
|
+
return this.send("closePage", ...arguments);
|
|
69
|
+
}
|
|
70
|
+
goto(page, url) {
|
|
71
|
+
return this.send("goto", ...arguments);
|
|
72
|
+
}
|
|
73
|
+
async newPage() {
|
|
74
|
+
return this.send("newPage");
|
|
75
|
+
}
|
|
76
|
+
$(selector, page) {
|
|
77
|
+
return this.send("$", ...arguments);
|
|
78
|
+
}
|
|
79
|
+
isDisabled(selector) {
|
|
80
|
+
return this.send("isDisabled", ...arguments);
|
|
81
|
+
}
|
|
82
|
+
getAttribute(selector, attribute, p) {
|
|
83
|
+
return this.send("getAttribute", ...arguments);
|
|
84
|
+
}
|
|
85
|
+
getInnerHtml(selector, p) {
|
|
86
|
+
return this.send("getInnerHtml", ...arguments);
|
|
87
|
+
}
|
|
88
|
+
// setValue(selector: string) {
|
|
89
|
+
// return this.send("getValue", ...arguments);
|
|
90
|
+
// }
|
|
91
|
+
focusOn(selector) {
|
|
92
|
+
return this.send("focusOn", ...arguments);
|
|
93
|
+
}
|
|
94
|
+
typeInto(selector) {
|
|
95
|
+
return this.send("typeInto", ...arguments);
|
|
96
|
+
}
|
|
97
|
+
page() {
|
|
98
|
+
return this.send("page");
|
|
99
|
+
}
|
|
100
|
+
click(selector) {
|
|
101
|
+
return this.send("click", ...arguments);
|
|
102
|
+
}
|
|
103
|
+
screencast(opts, page) {
|
|
104
|
+
return this.send(
|
|
105
|
+
"screencast",
|
|
106
|
+
{
|
|
107
|
+
...opts,
|
|
108
|
+
path: this.testResourceConfiguration.fs + "/" + opts.path
|
|
109
|
+
},
|
|
110
|
+
page,
|
|
111
|
+
this.testResourceConfiguration.name
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
screencastStop(p) {
|
|
115
|
+
return this.send("screencastStop", ...arguments);
|
|
116
|
+
}
|
|
117
|
+
customScreenShot(x, y) {
|
|
118
|
+
const opts = x[0];
|
|
119
|
+
const page = x[1];
|
|
120
|
+
return this.send(
|
|
121
|
+
"customScreenShot",
|
|
122
|
+
{
|
|
123
|
+
...opts,
|
|
124
|
+
path: this.testResourceConfiguration.fs + "/" + opts.path
|
|
125
|
+
},
|
|
126
|
+
this.testResourceConfiguration.name,
|
|
127
|
+
page
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
async existsSync(destFolder) {
|
|
131
|
+
return await this.send(
|
|
132
|
+
"existsSync",
|
|
133
|
+
this.testResourceConfiguration.fs + "/" + destFolder
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
mkdirSync() {
|
|
137
|
+
return this.send("mkdirSync", this.testResourceConfiguration.fs + "/");
|
|
138
|
+
}
|
|
139
|
+
async write(uid, contents) {
|
|
140
|
+
return await this.send("write", ...arguments);
|
|
141
|
+
}
|
|
142
|
+
async writeFileSync(filepath, contents) {
|
|
143
|
+
return await this.send(
|
|
144
|
+
"writeFileSync",
|
|
145
|
+
this.testResourceConfiguration.fs + "/" + filepath,
|
|
146
|
+
contents,
|
|
147
|
+
this.testResourceConfiguration.name
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
async createWriteStream(filepath) {
|
|
151
|
+
return await this.send(
|
|
152
|
+
"createWriteStream",
|
|
153
|
+
this.testResourceConfiguration.fs + "/" + filepath,
|
|
154
|
+
this.testResourceConfiguration.name
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
async end(uid) {
|
|
158
|
+
return await this.send("end", ...arguments);
|
|
159
|
+
}
|
|
160
|
+
async customclose() {
|
|
161
|
+
return await this.send(
|
|
162
|
+
"customclose",
|
|
163
|
+
this.testResourceConfiguration.fs,
|
|
164
|
+
this.testResourceConfiguration.name
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
testArtiFactoryfileWriter(tLog, callback) {
|
|
168
|
+
return (fPath, value) => {
|
|
169
|
+
callback(
|
|
170
|
+
new Promise((res, rej) => {
|
|
171
|
+
tLog("testArtiFactory =>", fPath);
|
|
172
|
+
const cleanPath = path.resolve(fPath);
|
|
173
|
+
fPaths.push(cleanPath.replace(process.cwd(), ``));
|
|
174
|
+
const targetDir = cleanPath.split("/").slice(0, -1).join("/");
|
|
175
|
+
fs.mkdir(targetDir, { recursive: true }, async (error) => {
|
|
176
|
+
if (error) {
|
|
177
|
+
console.error(`\u2757\uFE0FtestArtiFactory failed`, targetDir, error);
|
|
178
|
+
}
|
|
179
|
+
if (Buffer.isBuffer(value)) {
|
|
180
|
+
fs.writeFileSync(fPath, value, "binary");
|
|
181
|
+
res();
|
|
182
|
+
} else if (`string` === typeof value) {
|
|
183
|
+
fs.writeFileSync(fPath, value.toString(), {
|
|
184
|
+
encoding: "utf-8"
|
|
185
|
+
});
|
|
186
|
+
res();
|
|
187
|
+
} else {
|
|
188
|
+
const pipeStream = value;
|
|
189
|
+
const myFile = fs.createWriteStream(fPath);
|
|
190
|
+
pipeStream.pipe(myFile);
|
|
191
|
+
pipeStream.on("close", () => {
|
|
192
|
+
myFile.close();
|
|
193
|
+
res();
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
})
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
// launch(options?: PuppeteerLaunchOptions): Promise<Browser>;
|
|
202
|
+
startPuppeteer(options) {
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// src/Node.ts
|
|
207
|
+
var ipcfile;
|
|
208
|
+
var NodeTesteranto = class extends TesterantoCore {
|
|
209
|
+
constructor(input, testSpecification, testImplementation, testResourceRequirement, testAdapter) {
|
|
210
|
+
super(
|
|
211
|
+
input,
|
|
212
|
+
testSpecification,
|
|
213
|
+
testImplementation,
|
|
214
|
+
testResourceRequirement,
|
|
215
|
+
testAdapter,
|
|
216
|
+
() => {
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
async receiveTestResourceConfig(partialTestResource) {
|
|
221
|
+
console.log("receiveTestResourceConfig", partialTestResource);
|
|
222
|
+
const t = JSON.parse(partialTestResource);
|
|
223
|
+
const pm = new PM_Node(t, ipcfile);
|
|
224
|
+
return await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
var testeranto = async (input, testSpecification, testImplementation, testAdapter, testResourceRequirement = defaultTestResourceRequirement) => {
|
|
228
|
+
try {
|
|
229
|
+
const t = new NodeTesteranto(
|
|
230
|
+
input,
|
|
231
|
+
testSpecification,
|
|
232
|
+
testImplementation,
|
|
233
|
+
testResourceRequirement,
|
|
234
|
+
testAdapter
|
|
235
|
+
);
|
|
236
|
+
process.on("unhandledRejection", (reason, promise) => {
|
|
237
|
+
console.error("Unhandled Rejection at:", promise, "reason:", reason);
|
|
238
|
+
});
|
|
239
|
+
ipcfile = process.argv[3];
|
|
240
|
+
const f = await t.receiveTestResourceConfig(process.argv[2]);
|
|
241
|
+
console.error("goodbye node with failures", f.fails);
|
|
242
|
+
process.exit(f.fails);
|
|
243
|
+
} catch (e) {
|
|
244
|
+
console.error("goodbye node with caught error", e);
|
|
245
|
+
process.exit(-1);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var Node_default = testeranto;
|
|
249
|
+
|
|
250
|
+
export {
|
|
251
|
+
Node_default
|
|
252
|
+
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"metafile": {
|
|
5
5
|
"inputs": {
|
|
6
6
|
"src/lib/index.ts": {
|
|
7
|
-
"bytes":
|
|
7
|
+
"bytes": 3568,
|
|
8
8
|
"imports": [
|
|
9
9
|
{
|
|
10
10
|
"path": "../PM/pure.js",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"format": "esm"
|
|
78
78
|
},
|
|
79
79
|
"src/lib/basebuilder.ts": {
|
|
80
|
-
"bytes":
|
|
80
|
+
"bytes": 4874,
|
|
81
81
|
"imports": [
|
|
82
82
|
{
|
|
83
83
|
"path": "stream",
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
"format": "esm"
|
|
534
534
|
},
|
|
535
535
|
"src/Pure.ts": {
|
|
536
|
-
"bytes":
|
|
536
|
+
"bytes": 2597,
|
|
537
537
|
"imports": [
|
|
538
538
|
{
|
|
539
539
|
"path": "./CoreTypes.js",
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
"format": "esm"
|
|
576
576
|
},
|
|
577
577
|
"src/lib/core.test/MockCore.ts": {
|
|
578
|
-
"bytes":
|
|
578
|
+
"bytes": 2647,
|
|
579
579
|
"imports": [
|
|
580
580
|
{
|
|
581
581
|
"path": "src/lib/core.ts",
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
"format": "esm"
|
|
846
846
|
},
|
|
847
847
|
"src/lib/baseBuilder.test/baseBuilder.test.mock.ts": {
|
|
848
|
-
"bytes":
|
|
848
|
+
"bytes": 1988,
|
|
849
849
|
"imports": [
|
|
850
850
|
{
|
|
851
851
|
"path": "../../CoreTypes",
|
|
@@ -958,15 +958,15 @@
|
|
|
958
958
|
"testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs": {
|
|
959
959
|
"imports": [
|
|
960
960
|
{
|
|
961
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
961
|
+
"path": "testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs",
|
|
962
962
|
"kind": "import-statement"
|
|
963
963
|
},
|
|
964
964
|
{
|
|
965
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
965
|
+
"path": "testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs",
|
|
966
966
|
"kind": "import-statement"
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
969
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
970
970
|
"kind": "import-statement"
|
|
971
971
|
}
|
|
972
972
|
],
|
|
@@ -987,11 +987,11 @@
|
|
|
987
987
|
"testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs": {
|
|
988
988
|
"imports": [
|
|
989
989
|
{
|
|
990
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
990
|
+
"path": "testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs",
|
|
991
991
|
"kind": "import-statement"
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
994
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
995
995
|
"kind": "import-statement"
|
|
996
996
|
}
|
|
997
997
|
],
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
"testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs": {
|
|
1025
1025
|
"imports": [
|
|
1026
1026
|
{
|
|
1027
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1027
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
1028
1028
|
"kind": "import-statement"
|
|
1029
1029
|
}
|
|
1030
1030
|
],
|
|
@@ -1037,13 +1037,13 @@
|
|
|
1037
1037
|
"bytesInOutput": 3131
|
|
1038
1038
|
},
|
|
1039
1039
|
"src/Pure.ts": {
|
|
1040
|
-
"bytesInOutput":
|
|
1040
|
+
"bytesInOutput": 1791
|
|
1041
1041
|
},
|
|
1042
1042
|
"src/lib/core.test/core.test.specification.ts": {
|
|
1043
1043
|
"bytesInOutput": 2824
|
|
1044
1044
|
},
|
|
1045
1045
|
"src/lib/core.test/MockCore.ts": {
|
|
1046
|
-
"bytesInOutput":
|
|
1046
|
+
"bytesInOutput": 1670
|
|
1047
1047
|
},
|
|
1048
1048
|
"src/lib/core.test/core.test.implementation.ts": {
|
|
1049
1049
|
"bytesInOutput": 4145
|
|
@@ -1055,20 +1055,20 @@
|
|
|
1055
1055
|
"bytesInOutput": 114
|
|
1056
1056
|
}
|
|
1057
1057
|
},
|
|
1058
|
-
"bytes":
|
|
1058
|
+
"bytes": 15440
|
|
1059
1059
|
},
|
|
1060
1060
|
"testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs": {
|
|
1061
1061
|
"imports": [
|
|
1062
1062
|
{
|
|
1063
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1063
|
+
"path": "testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs",
|
|
1064
1064
|
"kind": "import-statement"
|
|
1065
1065
|
},
|
|
1066
1066
|
{
|
|
1067
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1067
|
+
"path": "testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs",
|
|
1068
1068
|
"kind": "import-statement"
|
|
1069
1069
|
},
|
|
1070
1070
|
{
|
|
1071
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1071
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
1072
1072
|
"kind": "import-statement"
|
|
1073
1073
|
}
|
|
1074
1074
|
],
|
|
@@ -1095,10 +1095,10 @@
|
|
|
1095
1095
|
},
|
|
1096
1096
|
"bytes": 10930
|
|
1097
1097
|
},
|
|
1098
|
-
"testeranto/bundles/node/allTests/chunk-
|
|
1098
|
+
"testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs": {
|
|
1099
1099
|
"imports": [
|
|
1100
1100
|
{
|
|
1101
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1101
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
1102
1102
|
"kind": "import-statement"
|
|
1103
1103
|
}
|
|
1104
1104
|
],
|
|
@@ -1115,11 +1115,11 @@
|
|
|
1115
1115
|
"testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs": {
|
|
1116
1116
|
"imports": [
|
|
1117
1117
|
{
|
|
1118
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1118
|
+
"path": "testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs",
|
|
1119
1119
|
"kind": "import-statement"
|
|
1120
1120
|
},
|
|
1121
1121
|
{
|
|
1122
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1122
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
1123
1123
|
"kind": "import-statement"
|
|
1124
1124
|
}
|
|
1125
1125
|
],
|
|
@@ -1132,7 +1132,7 @@
|
|
|
1132
1132
|
"bytesInOutput": 708
|
|
1133
1133
|
},
|
|
1134
1134
|
"src/lib/baseBuilder.test/baseBuilder.test.mock.ts": {
|
|
1135
|
-
"bytesInOutput":
|
|
1135
|
+
"bytesInOutput": 906
|
|
1136
1136
|
},
|
|
1137
1137
|
"src/lib/baseBuilder.test/baseBuilder.test.implementation.ts": {
|
|
1138
1138
|
"bytesInOutput": 3065
|
|
@@ -1144,12 +1144,12 @@
|
|
|
1144
1144
|
"bytesInOutput": 131
|
|
1145
1145
|
}
|
|
1146
1146
|
},
|
|
1147
|
-
"bytes":
|
|
1147
|
+
"bytes": 6009
|
|
1148
1148
|
},
|
|
1149
|
-
"testeranto/bundles/node/allTests/chunk-
|
|
1149
|
+
"testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs": {
|
|
1150
1150
|
"imports": [
|
|
1151
1151
|
{
|
|
1152
|
-
"path": "testeranto/bundles/node/allTests/chunk-
|
|
1152
|
+
"path": "testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs",
|
|
1153
1153
|
"kind": "import-statement"
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
},
|
|
1182
1182
|
"bytes": 6848
|
|
1183
1183
|
},
|
|
1184
|
-
"testeranto/bundles/node/allTests/chunk-
|
|
1184
|
+
"testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs": {
|
|
1185
1185
|
"imports": [],
|
|
1186
1186
|
"exports": [
|
|
1187
1187
|
"BaseBuilder",
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
"bytesInOutput": 3236
|
|
1202
1202
|
},
|
|
1203
1203
|
"src/lib/basebuilder.ts": {
|
|
1204
|
-
"bytesInOutput":
|
|
1204
|
+
"bytesInOutput": 2341
|
|
1205
1205
|
},
|
|
1206
1206
|
"src/lib/classBuilder.ts": {
|
|
1207
1207
|
"bytesInOutput": 1850
|
|
@@ -1222,7 +1222,7 @@
|
|
|
1222
1222
|
"bytesInOutput": 20
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
|
-
"bytes":
|
|
1225
|
+
"bytes": 16820
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
MockSuite
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-H2IBV7SY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Node_default
|
|
7
|
-
} from "../../../chunk-
|
|
7
|
+
} from "../../../chunk-ZHOULXPN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
BaseSuite
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-IDCUSTSM.mjs";
|
|
11
11
|
|
|
12
12
|
// src/lib/BaseSuite.test/test.ts
|
|
13
13
|
var specification = (Suite, Given, When, Then) => [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
Node_default
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-ZHOULXPN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
BaseBuilder
|
|
7
|
-
} from "../../../chunk-
|
|
7
|
+
} from "../../../chunk-IDCUSTSM.mjs";
|
|
8
8
|
|
|
9
9
|
// src/lib/baseBuilder.test/baseBuilder.test.specification.ts
|
|
10
10
|
var specification = (Suite, Given, When, Then) => {
|
|
@@ -65,7 +65,7 @@ var MockBaseBuilder = class extends BaseBuilder {
|
|
|
65
65
|
failed: false,
|
|
66
66
|
fails: 0,
|
|
67
67
|
artifacts: [],
|
|
68
|
-
logPromise: Promise.resolve(),
|
|
68
|
+
// logPromise: Promise.resolve(),
|
|
69
69
|
features: []
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
MockSuite
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-H2IBV7SY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Node_default
|
|
7
|
-
} from "../../../chunk-
|
|
7
|
+
} from "../../../chunk-ZHOULXPN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ClassBuilder
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-IDCUSTSM.mjs";
|
|
11
11
|
|
|
12
12
|
// src/lib/classBuilder.test/mock.ts
|
|
13
13
|
var TestClassBuilderMock = class extends ClassBuilder {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PM,
|
|
4
4
|
TesterantoCore,
|
|
5
5
|
defaultTestResourceRequirement
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-IDCUSTSM.mjs";
|
|
7
7
|
|
|
8
8
|
// src/PM/pure.ts
|
|
9
9
|
var PM_Pure = class extends PM {
|
|
@@ -164,7 +164,7 @@ var PureTesteranto = class extends TesterantoCore {
|
|
|
164
164
|
failed: true,
|
|
165
165
|
fails: 1,
|
|
166
166
|
artifacts: [],
|
|
167
|
-
logPromise: Promise.resolve(),
|
|
167
|
+
// logPromise: Promise.resolve(),
|
|
168
168
|
features: []
|
|
169
169
|
};
|
|
170
170
|
}
|
|
@@ -179,7 +179,7 @@ var PureTesteranto = class extends TesterantoCore {
|
|
|
179
179
|
failed: true,
|
|
180
180
|
fails: 1,
|
|
181
181
|
artifacts: [],
|
|
182
|
-
logPromise: Promise.resolve(),
|
|
182
|
+
// logPromise: Promise.resolve(),
|
|
183
183
|
features: []
|
|
184
184
|
};
|
|
185
185
|
}
|
|
@@ -303,13 +303,18 @@ var MockCore = class extends TesterantoCore {
|
|
|
303
303
|
throw new Error("testImplementation is required");
|
|
304
304
|
}
|
|
305
305
|
if (!testSpecification) {
|
|
306
|
-
console.warn(
|
|
306
|
+
console.warn(
|
|
307
|
+
"[WARN] testSpecification is null/undefined - tests may fail"
|
|
308
|
+
);
|
|
307
309
|
}
|
|
308
310
|
console.log("[DEBUG] MockCore constructor called with:");
|
|
309
311
|
console.log("- input:", JSON.stringify(input, null, 2));
|
|
310
312
|
console.log("- testSpecification keys:", Object.keys(testSpecification));
|
|
311
313
|
console.log("- testImplementation keys:", Object.keys(testImplementation));
|
|
312
|
-
console.log(
|
|
314
|
+
console.log(
|
|
315
|
+
"- testResourceRequirement:",
|
|
316
|
+
JSON.stringify(testResourceRequirement)
|
|
317
|
+
);
|
|
313
318
|
console.log("- testAdapter keys:", Object.keys(testAdapter3));
|
|
314
319
|
const requiredMethods = ["suites", "givens", "whens", "thens"];
|
|
315
320
|
requiredMethods.forEach((method) => {
|
|
@@ -318,8 +323,6 @@ var MockCore = class extends TesterantoCore {
|
|
|
318
323
|
}
|
|
319
324
|
});
|
|
320
325
|
console.log("[DEBUG] Validation passed, calling super...");
|
|
321
|
-
this.testResourceRequirement = testResourceRequirement;
|
|
322
|
-
this.testAdapter = testAdapter3;
|
|
323
326
|
super(
|
|
324
327
|
input,
|
|
325
328
|
testSpecification,
|
|
@@ -337,7 +340,7 @@ var MockCore = class extends TesterantoCore {
|
|
|
337
340
|
failed: false,
|
|
338
341
|
fails: 0,
|
|
339
342
|
artifacts: [],
|
|
340
|
-
logPromise: Promise.resolve(),
|
|
343
|
+
// logPromise: Promise.resolve(),
|
|
341
344
|
features: []
|
|
342
345
|
};
|
|
343
346
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
Node_default
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-ZHOULXPN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
andWhenProxy,
|
|
7
7
|
butThenProxy
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-IDCUSTSM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/lib/pmProxy.test/mockPMBase.ts
|
|
11
11
|
var MockPMBase = class {
|