testeranto 0.134.0 → 0.135.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/.aider.chat.history.md +601 -0
- package/.aider.input.history +36 -0
- package/.aider.tags.cache.v3/{18/8b/7dfca822129dad10b5cacadf7728.val → 8e/ec/2d4659a1589a0187a757ab1cbefa.val} +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/{8d/fa/12860238755bcfab9af8a93c52ab.val → d8/b0/a8966fcd65890fd9f70d7afe8141.val} +0 -0
- package/README.md +60 -347
- package/dist/common/src/CoreTypes.js +2 -0
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +10 -8
- package/dist/common/src/PM/main.js +12 -7
- package/dist/common/src/PM/node.js +10 -3
- package/dist/common/src/build.js +3 -2
- package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
- package/dist/common/src/esbuildConfigs/node.js +2 -16
- package/dist/common/src/esbuildConfigs/pure.js +2 -16
- package/dist/common/src/esbuildConfigs/rebuildPlugin.js +22 -0
- package/dist/common/src/esbuildConfigs/web.js +2 -16
- package/dist/common/src/lib/abstractBase.js +6 -1
- package/dist/common/src/lib/classBuilder.js +2 -3
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/CoreTypes.js +1 -0
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +10 -8
- package/dist/module/src/PM/main.js +12 -7
- package/dist/module/src/PM/node.js +10 -3
- package/dist/module/src/build.js +3 -2
- package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
- package/dist/module/src/esbuildConfigs/node.js +2 -16
- package/dist/module/src/esbuildConfigs/pure.js +2 -16
- package/dist/module/src/esbuildConfigs/rebuildPlugin.js +17 -0
- package/dist/module/src/esbuildConfigs/web.js +2 -16
- package/dist/module/src/lib/abstractBase.js +6 -1
- package/dist/module/src/lib/classBuilder.js +2 -3
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +15 -16
- package/dist/prebuild/TestReport.js +12 -14
- package/dist/prebuild/build.mjs +39 -61
- package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +14 -1
- package/dist/prebuild/run.mjs +50 -31
- package/dist/types/src/CoreTypes.d.ts +51 -0
- package/dist/types/src/Node.d.ts +2 -2
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +1 -19
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +1 -19
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +1 -19
- package/dist/types/src/PM/index.d.ts +1 -1
- package/dist/types/src/Types.d.ts +13 -57
- package/dist/types/src/Web.d.ts +1 -1
- package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
- package/dist/types/src/lib/abstractBase.d.ts +2 -8
- package/dist/types/src/lib/core.d.ts +1 -1
- package/dist/types/src/mothership/test.d.ts +1 -20
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/index.md +277 -0
- package/package.json +6 -1
- package/src/CoreTypes.ts +171 -0
- package/src/Node.ts +25 -11
- package/src/PM/PM_WithEslintAndTsc.ts +46 -15
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +17 -16
- package/src/PM/node.ts +10 -10
- package/src/Types.ts +166 -150
- package/src/Web.ts +0 -3
- package/src/build.ts +3 -2
- package/src/esbuildConfigs/eslint-formatter-testeranto.ts +17 -1
- package/src/esbuildConfigs/node.ts +2 -18
- package/src/esbuildConfigs/pure.ts +2 -18
- package/src/esbuildConfigs/rebuildPlugin.ts +23 -0
- package/src/esbuildConfigs/web.ts +2 -18
- package/src/lib/abstractBase.ts +6 -1
- package/src/lib/classBuilder.ts +5 -4
- package/src/lib/core.ts +5 -9
- package/.aider.tags.cache.v3/cache.db-shm +0 -0
- package/.aider.tags.cache.v3/cache.db-wal +0 -0
|
@@ -8,6 +8,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
8
8
|
const index_js_1 = __importDefault(require("./index.js"));
|
|
9
9
|
const inputFilesPlugin_js_1 = __importDefault(require("./inputFilesPlugin.js"));
|
|
10
10
|
const featuresPlugin_js_1 = __importDefault(require("./featuresPlugin.js"));
|
|
11
|
+
const rebuildPlugin_js_1 = __importDefault(require("./rebuildPlugin.js"));
|
|
11
12
|
exports.default = (config, entryPoints, testName) => {
|
|
12
13
|
const { inputFilesPluginFactory, register } = (0, inputFilesPlugin_js_1.default)("web", testName);
|
|
13
14
|
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { treeShaking: true, outdir: `testeranto/bundles/web/${testName}`, alias: {
|
|
@@ -41,22 +42,7 @@ exports.default = (config, entryPoints, testName) => {
|
|
|
41
42
|
// 'fs': false,
|
|
42
43
|
// }
|
|
43
44
|
}),
|
|
44
|
-
|
|
45
|
-
name: "rebuild-notify",
|
|
46
|
-
setup: (build) => {
|
|
47
|
-
build.onStart(() => {
|
|
48
|
-
console.log(`> web build starting...`);
|
|
49
|
-
});
|
|
50
|
-
build.onEnd((result) => {
|
|
51
|
-
console.log(`> web build ended with ${result.errors.length} errors`);
|
|
52
|
-
if (result.errors.length > 0) {
|
|
53
|
-
console.log(result);
|
|
54
|
-
}
|
|
55
|
-
// console.log(result);
|
|
56
|
-
// result.errors.length !== 0 && process.exit(-1);
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
},
|
|
45
|
+
(0, rebuildPlugin_js_1.default)("web"),
|
|
60
46
|
...((config.webPlugins || []).map((p) => p(register, entryPoints)) || []),
|
|
61
47
|
] });
|
|
62
48
|
};
|
|
@@ -105,7 +105,12 @@ class BaseGiven {
|
|
|
105
105
|
return {
|
|
106
106
|
key: this.key,
|
|
107
107
|
name: this.name,
|
|
108
|
-
whens: this.whens.map((w) =>
|
|
108
|
+
whens: this.whens.map((w) => {
|
|
109
|
+
if (w && w.toObj)
|
|
110
|
+
return w.toObj();
|
|
111
|
+
console.error("w is not as expected!", w);
|
|
112
|
+
return {};
|
|
113
|
+
}),
|
|
109
114
|
thens: this.thens.map((t) => t.toObj()),
|
|
110
115
|
error: this.error ? [this.error, this.error.stack] : null,
|
|
111
116
|
failed: this.failed,
|
|
@@ -12,14 +12,13 @@ class ClassBuilder extends basebuilder_js_1.BaseBuilder {
|
|
|
12
12
|
}, {});
|
|
13
13
|
const classyGivens = Object.entries(testImplementation.givens).reduce((a, [key, g]) => {
|
|
14
14
|
a[key] = (features, whens, thens, ...initialValues) => {
|
|
15
|
-
// console.log("givEn", givEn.toString());
|
|
16
15
|
return new givenKlasser.prototype.constructor(key, features, whens, thens, testImplementation.givens[key], initialValues);
|
|
17
16
|
};
|
|
18
17
|
return a;
|
|
19
18
|
}, {});
|
|
20
19
|
const classyWhens = Object.entries(testImplementation.whens).reduce((a, [key, whEn]) => {
|
|
21
|
-
a[key] = (payload) => {
|
|
22
|
-
return new whenKlasser.prototype.constructor(`${whEn.name}: ${payload && payload.toString()}`, whEn(payload));
|
|
20
|
+
a[key] = (...payload) => {
|
|
21
|
+
return new whenKlasser.prototype.constructor(`${whEn.name}: ${payload && payload.toString()}`, whEn(...payload));
|
|
23
22
|
};
|
|
24
23
|
return a;
|
|
25
24
|
}, {});
|