testeranto 0.36.1 → 0.36.3

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "teeny tiny tightly-typed typescript tests",
4
- "version": "0.36.1",
4
+ "version": "0.36.3",
5
5
  "type": "module",
6
- "types": "./index.d.mts",
7
- "main": "./src/index.mjs",
6
+ "types": "./src/index.d.mts",
7
+ "main": "./src/index.mts",
8
8
  "exports": {
9
9
  ".": "./src/index.mjs",
10
10
  "./src/Project": "./src/Project.js",
@@ -27,7 +27,7 @@
27
27
  "testerantoWatch": "./bin/testerantoWatch.sh"
28
28
  },
29
29
  "scripts": {
30
- "build": "tsc; yarn tsc --module 'esnext' --emitDeclarationOnly --isolatedModules false --outFile index.d.mts",
30
+ "build": "tsc",
31
31
  "dev": "tsc --watch",
32
32
  "bundle:reporter": "esbuild ./src/Report.tsx --bundle --outfile=./dist/reporter.js",
33
33
  "simpleserver": "cd dist && python -m SimpleHTTPServer 8080",
@@ -66,4 +66,4 @@
66
66
  "why-is-node-running": "^2.2.2",
67
67
  "why-is-node-still-running": "^1.0.0"
68
68
  }
69
- }
69
+ }
package/index.d.ts DELETED
@@ -1,377 +0,0 @@
1
- declare module "Features" {
2
- const DirectedGraph: any, UndirectedGraph: any;
3
- abstract class TesterantoGraph {
4
- name: string;
5
- abstract graph: any;
6
- constructor(name: string);
7
- }
8
- export class BaseFeature {
9
- name: string;
10
- constructor(name: string);
11
- }
12
- export class TesterantoGraphUndirected implements TesterantoGraph {
13
- name: string;
14
- graph: typeof UndirectedGraph;
15
- constructor(name: string);
16
- connect(a: any, b: any, relation?: string): void;
17
- }
18
- export class TesterantoGraphDirected implements TesterantoGraph {
19
- name: string;
20
- graph: typeof DirectedGraph;
21
- constructor(name: string);
22
- connect(to: any, from: any, relation?: string): void;
23
- }
24
- export class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
25
- name: string;
26
- graph: typeof DirectedGraph;
27
- constructor(name: string);
28
- connect(to: any, from: any, relation?: string): void;
29
- }
30
- export class TesterantoFeatures {
31
- features: Record<string, BaseFeature>;
32
- graphs: {
33
- undirected: TesterantoGraphUndirected[];
34
- directed: TesterantoGraphDirected[];
35
- dags: TesterantoGraphDirectedAcyclic[];
36
- };
37
- constructor(features: Record<string, BaseFeature>, graphs: {
38
- undirected: TesterantoGraphUndirected[];
39
- directed: TesterantoGraphDirected[];
40
- dags: TesterantoGraphDirectedAcyclic[];
41
- });
42
- networks(): (TesterantoGraphUndirected | TesterantoGraphDirected | TesterantoGraphDirectedAcyclic)[];
43
- toObj(): {
44
- features: {
45
- inNetworks: {
46
- network: string;
47
- neighbors: any;
48
- }[];
49
- name: string;
50
- }[];
51
- networks: ({
52
- name: string;
53
- graph: any;
54
- } | {
55
- name: string;
56
- graph: any;
57
- } | {
58
- name: string;
59
- graph: any;
60
- })[];
61
- };
62
- }
63
- export type IT_FeatureNetwork = {
64
- name: string;
65
- };
66
- }
67
- declare module "IBaseConfig" {
68
- import { TesterantoFeatures } from "Features";
69
- export type ICollateMode = 'on' | 'off' | 'watch' | `serve` | `watch+serve` | `dev`;
70
- export type IBaseConfig = {
71
- clearScreen: boolean;
72
- collateMode: ICollateMode;
73
- features: TesterantoFeatures;
74
- loaders: any[];
75
- minify: boolean;
76
- outbase: string;
77
- outdir: string;
78
- ports: string[];
79
- collateEntry: string;
80
- runMode: boolean;
81
- tests: string[];
82
- buildMode: 'on' | 'off' | 'watch';
83
- };
84
- }
85
- declare module "index" {
86
- import { BaseFeature } from "Features";
87
- import { IBaseConfig } from "IBaseConfig";
88
- export type { IBaseConfig };
89
- type ITTestResourceConfiguration = {
90
- "fs": string;
91
- "ports": number[];
92
- };
93
- export type ITTestResourceRequirement = {
94
- "ports": number;
95
- "fs": string;
96
- };
97
- type IRunner = (x: ITTestResourceConfiguration, t: ITLog) => Promise<boolean>;
98
- export type IT = {
99
- toObj(): object;
100
- name: string;
101
- givens: BaseGiven<unknown, unknown, unknown, unknown, Record<string, BaseFeature>>[];
102
- checks: BaseCheck<unknown, unknown, unknown, unknown, ITTestShape, unknown>[];
103
- testResourceConfiguration: ITTestResourceConfiguration;
104
- };
105
- export type ITestJob = {
106
- toObj(): object;
107
- test: IT;
108
- runner: IRunner;
109
- testResourceRequirement: ITTestResourceRequirement;
110
- receiveTestResourceConfig: (testResource?: any) => boolean;
111
- };
112
- export type ITestResults = Promise<{
113
- test: IT;
114
- }>[];
115
- export type ITTestShape = {
116
- suites: any;
117
- givens: any;
118
- whens: any;
119
- thens: any;
120
- checks: any;
121
- };
122
- export type ITestSpecification<ITestShape extends ITTestShape, IFeatureShape> = (Suite: {
123
- [K in keyof ITestShape["suites"]]: (name: string, givens: BaseGiven<unknown, unknown, unknown, unknown, Record<string, BaseFeature>>[], checks: BaseCheck<unknown, unknown, unknown, unknown, ITestShape, IFeatureShape>[]) => BaseSuite<unknown, unknown, unknown, unknown, unknown, ITestShape, IFeatureShape>;
124
- }, Given: {
125
- [K in keyof ITestShape["givens"]]: (features: (keyof IFeatureShape)[], whens: BaseWhen<unknown, unknown, unknown>[], thens: BaseThen<unknown, unknown, unknown>[], ...xtras: ITestShape["givens"][K]) => BaseGiven<unknown, unknown, unknown, unknown, unknown>;
126
- }, When: {
127
- [K in keyof ITestShape["whens"]]: (...xtras: ITestShape["whens"][K]) => BaseWhen<unknown, unknown, unknown>;
128
- }, Then: {
129
- [K in keyof ITestShape["thens"]]: (...xtras: ITestShape["thens"][K]) => BaseThen<unknown, unknown, unknown>;
130
- }, Check: {
131
- [K in keyof ITestShape["checks"]]: (name: string, features: (keyof IFeatureShape)[], callbackA: (whens: {
132
- [K in keyof ITestShape["whens"]]: (...unknown: any[]) => BaseWhen<unknown, unknown, unknown>;
133
- }, thens: {
134
- [K in keyof ITestShape["thens"]]: (...unknown: any[]) => BaseThen<unknown, unknown, unknown>;
135
- }) => unknown, ...xtras: ITestShape["checks"][K]) => BaseCheck<unknown, unknown, unknown, unknown, ITestShape, IFeatureShape>;
136
- }) => any[];
137
- export type ITestImplementation<IState, ISelection, IWhenShape, IThenShape, ITestShape extends ITTestShape> = {
138
- Suites: {
139
- [K in keyof ITestShape["suites"]]: string;
140
- };
141
- Givens: {
142
- [K in keyof ITestShape["givens"]]: (...Ig: ITestShape["givens"][K]) => IState;
143
- };
144
- Whens: {
145
- [K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ISelection) => IWhenShape;
146
- };
147
- Thens: {
148
- [K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ISelection) => IThenShape;
149
- };
150
- Checks: {
151
- [K in keyof ITestShape["checks"]]: (...Ic: ITestShape["checks"][K]) => IState;
152
- };
153
- };
154
- type ITestArtifactory = (key: string, value: string) => unknown;
155
- type ITLog = (...string: any[]) => void;
156
- export abstract class BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITestShape extends ITTestShape, IFeatureShape> {
157
- name: string;
158
- givens: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[];
159
- checks: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>[];
160
- store: IStore;
161
- fails: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[];
162
- testResourceConfiguration: ITTestResourceConfiguration;
163
- constructor(name: string, givens?: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[], checks?: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>[]);
164
- toObj(): {
165
- name: string;
166
- givens: {
167
- name: string;
168
- whens: {
169
- name: string;
170
- error: boolean;
171
- }[];
172
- thens: {
173
- name: string;
174
- error: boolean;
175
- }[];
176
- errors: Error;
177
- features: (keyof IFeatureShape)[];
178
- }[];
179
- fails: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[];
180
- };
181
- setup(s: IInput, artifactory: ITestArtifactory): Promise<ISubject>;
182
- test(t: IThenShape): unknown;
183
- run(input: any, testResourceConfiguration: ITTestResourceConfiguration, artifactory: (gndex: string) => (a: string, b: string) => void, tLog: (...string: any[]) => void): Promise<BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>>;
184
- }
185
- export abstract class BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape> {
186
- name: string;
187
- features: (keyof IFeatureShape)[];
188
- whens: BaseWhen<IStore, ISelection, IThenShape>[];
189
- thens: BaseThen<ISelection, IStore, IThenShape>[];
190
- error: Error;
191
- store: IStore;
192
- recommendedFsPath: string;
193
- constructor(name: string, features: (keyof IFeatureShape)[], whens: BaseWhen<IStore, ISelection, IThenShape>[], thens: BaseThen<ISelection, IStore, IThenShape>[]);
194
- afterAll(store: IStore, artifactory: ITestArtifactory): void;
195
- toObj(): {
196
- name: string;
197
- whens: {
198
- name: string;
199
- error: boolean;
200
- }[];
201
- thens: {
202
- name: string;
203
- error: boolean;
204
- }[];
205
- errors: Error;
206
- features: (keyof IFeatureShape)[];
207
- };
208
- abstract givenThat(subject: ISubject, testResourceConfiguration: any, artifactory: ITestArtifactory): Promise<IStore>;
209
- afterEach(store: IStore, ndx: number, artifactory: ITestArtifactory): Promise<unknown>;
210
- give(subject: ISubject, index: number, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog): Promise<IStore>;
211
- }
212
- export abstract class BaseWhen<IStore, ISelection, IThenShape> {
213
- name: string;
214
- actioner: (x: ISelection) => IThenShape;
215
- error: boolean;
216
- constructor(name: string, actioner: (xyz: ISelection) => IThenShape);
217
- abstract andWhen(store: IStore, actioner: (x: ISelection) => IThenShape, testResource: any): any;
218
- toObj(): {
219
- name: string;
220
- error: boolean;
221
- };
222
- test(store: IStore, testResourceConfiguration: any, tLog: ITLog): Promise<any>;
223
- }
224
- export abstract class BaseThen<ISelection, IStore, IThenShape> {
225
- name: string;
226
- thenCB: (storeState: ISelection) => IThenShape;
227
- error: boolean;
228
- constructor(name: string, thenCB: (val: ISelection) => IThenShape);
229
- toObj(): {
230
- name: string;
231
- error: boolean;
232
- };
233
- abstract butThen(store: any, testResourceConfiguration?: any): Promise<ISelection>;
234
- test(store: IStore, testResourceConfiguration: any, tLog: ITLog): Promise<IThenShape | undefined>;
235
- }
236
- export abstract class BaseCheck<ISubject, IStore, ISelection, IThenShape, ITestShape extends ITTestShape, IFeatureShape> {
237
- name: string;
238
- features: (keyof IFeatureShape)[];
239
- checkCB: (whens: any, thens: any) => any;
240
- whens: {
241
- [K in keyof ITestShape["whens"]]: (p: any, tc: any) => BaseWhen<IStore, ISelection, IThenShape>;
242
- };
243
- thens: {
244
- [K in keyof ITestShape["thens"]]: (p: any, tc: any) => BaseThen<ISelection, IStore, IThenShape>;
245
- };
246
- constructor(name: string, features: (keyof IFeatureShape)[], checkCB: (whens: any, thens: any) => any, whens: any, thens: any);
247
- abstract checkThat(subject: ISubject, testResourceConfiguration: any, artifactory: ITestArtifactory): Promise<IStore>;
248
- afterEach(store: IStore, ndx: number, cb?: any): Promise<unknown>;
249
- check(subject: ISubject, ndx: number, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog): Promise<void>;
250
- }
251
- export abstract class TesterantoLevelZero<IInput, ISubject, IStore, ISelection, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions, IThenShape, IFeatureShape> {
252
- readonly cc: IStore;
253
- constructorator: IStore;
254
- suitesOverrides: Record<keyof SuiteExtensions, (name: string, givens: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[], checks: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>[]) => BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>>;
255
- givenOverides: Record<keyof GivenExtensions, (name: string, features: (keyof IFeatureShape)[], whens: BaseWhen<IStore, ISelection, IThenShape>[], thens: BaseThen<ISelection, IStore, IThenShape>[], ...xtraArgs: any[]) => BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>>;
256
- whenOverides: Record<keyof WhenExtensions, (any: any) => BaseWhen<IStore, ISelection, IThenShape>>;
257
- thenOverides: Record<keyof ThenExtensions, (selection: ISelection, expectation: any) => BaseThen<ISelection, IStore, IThenShape>>;
258
- checkOverides: Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, ...xtraArgs: any[]) => BaseCheck<ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>>;
259
- constructor(cc: IStore, suitesOverrides: Record<keyof SuiteExtensions, (name: string, givens: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[], checks: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>[]) => BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>>, givenOverides: Record<keyof GivenExtensions, (name: string, features: (keyof IFeatureShape)[], whens: BaseWhen<IStore, ISelection, IThenShape>[], thens: BaseThen<ISelection, IStore, IThenShape>[], ...xtraArgs: any[]) => BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>>, whenOverides: Record<keyof WhenExtensions, (c: any) => BaseWhen<IStore, ISelection, IThenShape>>, thenOverides: Record<keyof ThenExtensions, (selection: ISelection, expectation: any) => BaseThen<ISelection, IStore, IThenShape>>, checkOverides: Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, ...xtraArgs: any[]) => BaseCheck<ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>>);
260
- Suites(): Record<keyof SuiteExtensions, (name: string, givens: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[], checks: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>[]) => BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>>;
261
- Given(): Record<keyof GivenExtensions, (name: string, features: (keyof IFeatureShape)[], whens: BaseWhen<IStore, ISelection, IThenShape>[], thens: BaseThen<ISelection, IStore, IThenShape>[], ...xtraArgs: any[]) => BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>>;
262
- When(): Record<keyof WhenExtensions, (arg0: IStore, ...arg1: any) => BaseWhen<IStore, ISelection, IThenShape>>;
263
- Then(): Record<keyof ThenExtensions, (selection: ISelection, expectation: any) => BaseThen<ISelection, IStore, IThenShape>>;
264
- Check(): Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, whens: any, thens: any) => BaseCheck<ISubject, IStore, ISelection, IThenShape, ITTestShape, IFeatureShape>>;
265
- }
266
- export abstract class TesterantoLevelOne<ITestShape extends ITTestShape, IInitialState, ISelection, IStore, ISubject, IWhenShape, IThenShape, IInput, IFeatureShape extends Record<string, BaseFeature>> {
267
- constructor(testImplementation: ITestImplementation<IInitialState, ISelection, IWhenShape, IThenShape, ITestShape>, testSpecification: (Suite: {
268
- [K in keyof ITestShape["suites"]]: (feature: string, givens: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[], checks: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>[]) => BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>;
269
- }, Given: {
270
- [K in keyof ITestShape["givens"]]: (name: string, features: (keyof IFeatureShape)[], whens: BaseWhen<IStore, ISelection, IThenShape>[], thens: BaseThen<ISelection, IStore, IThenShape>[], ...a: ITestShape["givens"][K]) => BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>;
271
- }, When: {
272
- [K in keyof ITestShape["whens"]]: (...a: ITestShape["whens"][K]) => BaseWhen<IStore, ISelection, IThenShape>;
273
- }, Then: {
274
- [K in keyof ITestShape["thens"]]: (...a: ITestShape["thens"][K]) => BaseThen<ISelection, IStore, IThenShape>;
275
- }, Check: {
276
- [K in keyof ITestShape["checks"]]: (name: string, features: (keyof IFeatureShape)[], cbz: (...any: any[]) => Promise<void>) => any;
277
- }) => BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>[], input: IInput, suiteKlasser: (name: string, givens: BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>[], checks: BaseCheck<ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>[]) => BaseSuite<IInput, ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>, givenKlasser: (n: any, f: any, w: any, t: any, z?: any) => BaseGiven<ISubject, IStore, ISelection, IThenShape, IFeatureShape>, whenKlasser: (s: any, o: any) => BaseWhen<IStore, ISelection, IThenShape>, thenKlasser: (s: any, o: any) => BaseThen<IStore, ISelection, IThenShape>, checkKlasser: (n: any, f: any, cb: any, w: any, t: any) => BaseCheck<ISubject, IStore, ISelection, IThenShape, ITestShape, IFeatureShape>, testResourceRequirement: any, nameKey: string);
278
- }
279
- type ITestArtificer = (key: string, data: any) => void;
280
- const _default: <TestShape extends ITTestShape, Input, Subject, Store, Selection_1, WhenShape, ThenShape, InitialStateShape, IFeatureShape extends Record<string, BaseFeature>>(input: Input, testSpecification: ITestSpecification<TestShape, IFeatureShape>, testImplementation: any, testInterface: {
281
- actionHandler?: ((b: (...any: any[]) => any) => any) | undefined;
282
- andWhen: (store: Store, actioner: any, testResource: ITTestResourceConfiguration) => Promise<Selection_1>;
283
- butThen?: ((store: Store, callback: any, testResource: ITTestResourceConfiguration) => Promise<Selection_1>) | undefined;
284
- assertioner?: ((t: ThenShape) => any) | undefined;
285
- afterAll?: ((store: Store, artificer: ITestArtificer) => any) | undefined;
286
- afterEach?: ((store: Store, ndx: number, artificer: ITestArtificer) => Promise<unknown>) | undefined;
287
- beforeAll?: ((input: Input, artificer: ITestArtificer) => Promise<Subject>) | undefined;
288
- beforeEach?: ((subject: Subject, initialValues: any, testResource: ITTestResourceConfiguration, artificer: ITestArtificer) => Promise<Store>) | undefined;
289
- }, nameKey: string, testResourceRequirement?: ITTestResourceRequirement) => Promise<void>;
290
- export default _default;
291
- }
292
- declare module "Project" {
293
- import pm2 from 'pm2';
294
- import { TesterantoFeatures } from "Features";
295
- import { ICollateMode } from "IBaseConfig";
296
- import { IBaseConfig } from "index";
297
- type IPm2Process = {
298
- process: {
299
- namespace: string;
300
- versioning: object;
301
- name: string;
302
- pm_id: number;
303
- };
304
- data: {
305
- testResourceRequirement: {
306
- ports: number;
307
- };
308
- };
309
- at: string;
310
- };
311
- export default class Scheduler {
312
- project: ITProject;
313
- ports: Record<string, string>;
314
- jobs: Record<string, {
315
- aborter: () => any;
316
- cancellablePromise: string;
317
- }>;
318
- queue: IPm2Process[];
319
- spinCycle: number;
320
- spinAnimation: string;
321
- pm2: typeof pm2;
322
- summary: Record<string, boolean | undefined>;
323
- mode: `up` | `down`;
324
- constructor(project: ITProject);
325
- private checkForShutDown;
326
- abort(pm2Proc: IPm2Process): Promise<void>;
327
- private spinner;
328
- private push;
329
- private pop;
330
- private releaseTestResources;
331
- shutdown(): void;
332
- }
333
- export class ITProject {
334
- buildMode: 'on' | 'off' | 'watch';
335
- clearScreen: boolean;
336
- collateEntry: string;
337
- collateMode: ICollateMode;
338
- features: TesterantoFeatures;
339
- loaders: any[];
340
- minify: boolean;
341
- outbase: string;
342
- outdir: string;
343
- ports: string[];
344
- runMode: boolean;
345
- tests: string[];
346
- getEntryPoints(): string[];
347
- constructor(config: IBaseConfig);
348
- }
349
- }
350
- declare module "kokomoFeatures" {
351
- import { BaseFeature, TesterantoFeatures } from "Features";
352
- export class MyFeature extends BaseFeature {
353
- due?: Date;
354
- constructor(name: string, due?: Date);
355
- }
356
- export const features: {
357
- root: MyFeature;
358
- mint: MyFeature;
359
- redemption: MyFeature;
360
- federatedSplitContract: MyFeature;
361
- markRedeemed: MyFeature;
362
- encryptShipping: MyFeature;
363
- decryptShipping: MyFeature;
364
- buildSilo: MyFeature;
365
- buildRocket: MyFeature;
366
- buildSatellite: MyFeature;
367
- hello: MyFeature;
368
- aloha: MyFeature;
369
- gutentag: MyFeature;
370
- buenosDias: MyFeature;
371
- hola: MyFeature;
372
- bienVenidos: MyFeature;
373
- walkingTheDog: MyFeature;
374
- };
375
- const _default_1: TesterantoFeatures;
376
- export default _default_1;
377
- }
@@ -1,26 +0,0 @@
1
- import { BaseFeature, TesterantoFeatures } from "./Features";
2
- export declare class MyFeature extends BaseFeature {
3
- due?: Date;
4
- constructor(name: string, due?: Date);
5
- }
6
- export declare const features: {
7
- root: MyFeature;
8
- mint: MyFeature;
9
- redemption: MyFeature;
10
- federatedSplitContract: MyFeature;
11
- markRedeemed: MyFeature;
12
- encryptShipping: MyFeature;
13
- decryptShipping: MyFeature;
14
- buildSilo: MyFeature;
15
- buildRocket: MyFeature;
16
- buildSatellite: MyFeature;
17
- hello: MyFeature;
18
- aloha: MyFeature;
19
- gutentag: MyFeature;
20
- buenosDias: MyFeature;
21
- hola: MyFeature;
22
- bienVenidos: MyFeature;
23
- walkingTheDog: MyFeature;
24
- };
25
- declare const _default: TesterantoFeatures;
26
- export default _default;
@@ -1,51 +0,0 @@
1
- import { BaseFeature, TesterantoFeatures, TesterantoGraphDirected, TesterantoGraphDirectedAcyclic, TesterantoGraphUndirected } from "./Features";
2
- export class MyFeature extends BaseFeature {
3
- constructor(name, due) {
4
- super(name);
5
- this.due = due;
6
- }
7
- }
8
- export const features = {
9
- root: new MyFeature("kokomo bay"),
10
- mint: new MyFeature("An ERC721 which is redeemable?!!!"),
11
- redemption: new MyFeature("Redeems an ERC-721, marking its state as redeemed"),
12
- federatedSplitContract: new MyFeature("A website which can acts as a storefront"),
13
- markRedeemed: new MyFeature("Registers contract status as redeemed, and changes image"),
14
- encryptShipping: new MyFeature("Buyer encrypts plaintext message and stores value on contract"),
15
- decryptShipping: new MyFeature("Vendor Decrypts plaintext message"),
16
- buildSilo: new MyFeature("build the rocket silo", new Date('2023-05-02T02:36:34+0000')),
17
- buildRocket: new MyFeature("build the rocket", new Date('2023-06-06T02:36:34+0000')),
18
- buildSatellite: new MyFeature("build the rocket payload", new Date('2023-06-06T02:36:34+0000')),
19
- hello: new MyFeature("hello"),
20
- aloha: new MyFeature("aloha"),
21
- gutentag: new MyFeature("gutentag"),
22
- buenosDias: new MyFeature("buenos dias"),
23
- hola: new MyFeature("hola"),
24
- bienVenidos: new MyFeature("bien venidos"),
25
- walkingTheDog: new MyFeature("my favorite chore"),
26
- };
27
- const priorityGraph = new TesterantoGraphDirectedAcyclic("Priority");
28
- priorityGraph.connect(`root`, `redemption`);
29
- priorityGraph.connect(`root`, `federatedSplitContract`);
30
- priorityGraph.connect(`root`, `mint`);
31
- priorityGraph.connect(`redemption`, `markRedeemed`);
32
- priorityGraph.connect(`redemption`, `encryptShipping`);
33
- priorityGraph.connect(`redemption`, `decryptShipping`);
34
- const semantic = new TesterantoGraphDirected("some semantic directed graph");
35
- semantic.connect(`hello`, `aloha`, "superceedes");
36
- semantic.connect(`gutentag`, `hola`, "negates");
37
- const undirected = new TesterantoGraphUndirected("an undirected semantic graph");
38
- undirected.connect(`gutentag`, `aloha`, "related");
39
- undirected.connect(`buildRocket`, `buildSatellite`, "overlap");
40
- undirected.connect(`buildRocket`, `buildSilo`, "overlap");
41
- export default new TesterantoFeatures(features, {
42
- undirected: [
43
- undirected
44
- ],
45
- directed: [
46
- semantic
47
- ],
48
- dags: [
49
- priorityGraph
50
- ]
51
- });
@@ -1,67 +0,0 @@
1
- import {
2
- BaseFeature,
3
- TesterantoFeatures,
4
- TesterantoGraphDirected,
5
- TesterantoGraphDirectedAcyclic,
6
- TesterantoGraphUndirected
7
- } from "./Features";
8
-
9
- export class MyFeature extends BaseFeature {
10
- due?: Date;
11
- constructor(name: string, due?: Date) {
12
- super(name);
13
- this.due = due;
14
- }
15
- }
16
-
17
- export const features = {
18
- root: new MyFeature("kokomo bay"),
19
- mint: new MyFeature("An ERC721 which is redeemable?!!!"),
20
- redemption: new MyFeature("Redeems an ERC-721, marking its state as redeemed"),
21
- federatedSplitContract: new MyFeature("A website which can acts as a storefront"),
22
- markRedeemed: new MyFeature("Registers contract status as redeemed, and changes image"),
23
- encryptShipping: new MyFeature("Buyer encrypts plaintext message and stores value on contract"),
24
- decryptShipping: new MyFeature("Vendor Decrypts plaintext message"),
25
- buildSilo: new MyFeature("build the rocket silo", new Date('2023-05-02T02:36:34+0000')),
26
- buildRocket: new MyFeature("build the rocket", new Date('2023-06-06T02:36:34+0000')),
27
- buildSatellite: new MyFeature("build the rocket payload", new Date('2023-06-06T02:36:34+0000')),
28
- hello: new MyFeature("hello"),
29
- aloha: new MyFeature("aloha"),
30
- gutentag: new MyFeature("gutentag"),
31
- buenosDias: new MyFeature("buenos dias"),
32
- hola: new MyFeature("hola"),
33
- bienVenidos: new MyFeature("bien venidos"),
34
- walkingTheDog: new MyFeature("my favorite chore"),
35
- };
36
-
37
- const priorityGraph = new TesterantoGraphDirectedAcyclic("Priority");
38
-
39
- priorityGraph.connect(`root`, `redemption`);
40
- priorityGraph.connect(`root`, `federatedSplitContract`);
41
- priorityGraph.connect(`root`, `mint`);
42
- priorityGraph.connect(`redemption`, `markRedeemed`);
43
- priorityGraph.connect(`redemption`, `encryptShipping`);
44
- priorityGraph.connect(`redemption`, `decryptShipping`);
45
-
46
- const semantic = new TesterantoGraphDirected("some semantic directed graph");
47
- semantic.connect(`hello`, `aloha`, "superceedes");
48
- semantic.connect(`gutentag`, `hola`, "negates");
49
-
50
- const undirected = new TesterantoGraphUndirected("an undirected semantic graph");
51
- undirected.connect(`gutentag`, `aloha`, "related");
52
- undirected.connect(`buildRocket`, `buildSatellite`, "overlap");
53
- undirected.connect(`buildRocket`, `buildSilo`, "overlap");
54
-
55
- export default new TesterantoFeatures(features,
56
- {
57
- undirected: [
58
- undirected
59
- ],
60
- directed: [
61
- semantic
62
- ],
63
- dags: [
64
- priorityGraph
65
- ]
66
- }
67
- );