@hyperfixi/testing-framework 2.0.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.
Files changed (37) hide show
  1. package/dist/assertions-BImuwZsB.d.mts +458 -0
  2. package/dist/assertions-BImuwZsB.d.ts +458 -0
  3. package/dist/assertions.d.mts +1 -0
  4. package/dist/assertions.d.ts +1 -0
  5. package/dist/assertions.js +625 -0
  6. package/dist/assertions.js.map +1 -0
  7. package/dist/assertions.mjs +621 -0
  8. package/dist/assertions.mjs.map +1 -0
  9. package/dist/index.d.mts +246 -0
  10. package/dist/index.d.ts +246 -0
  11. package/dist/index.js +1465 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/index.mjs +1435 -0
  14. package/dist/index.mjs.map +1 -0
  15. package/package.json +121 -0
  16. package/src/assertions.test.ts +490 -0
  17. package/src/assertions.ts +779 -0
  18. package/src/index.test.ts +490 -0
  19. package/src/index.ts +601 -0
  20. package/src/jsdom.d.ts +7 -0
  21. package/src/multilingual/README.md +295 -0
  22. package/src/multilingual/bundle-builder.ts +345 -0
  23. package/src/multilingual/cli.ts +224 -0
  24. package/src/multilingual/index.ts +68 -0
  25. package/src/multilingual/orchestrator.ts +275 -0
  26. package/src/multilingual/pattern-loader.ts +176 -0
  27. package/src/multilingual/reporters/console-reporter.ts +294 -0
  28. package/src/multilingual/reporters/json-reporter.ts +99 -0
  29. package/src/multilingual/reporters/regression-reporter.ts +263 -0
  30. package/src/multilingual/tools/analyze-failures.ts +326 -0
  31. package/src/multilingual/types.ts +268 -0
  32. package/src/multilingual/validators/parse-diagnostics.ts +337 -0
  33. package/src/multilingual/validators/parse-validator.ts +193 -0
  34. package/src/multilingual/validators/size-validator.ts +187 -0
  35. package/src/runner.test.ts +813 -0
  36. package/src/runner.ts +639 -0
  37. package/src/types.ts +505 -0
@@ -0,0 +1,621 @@
1
+ import { diffLines } from 'diff';
2
+
3
+ /* Testing Framework for HyperFixi Applications */
4
+
5
+ var AssertionError = class extends Error {
6
+ constructor(message, expected, actual, operator) {
7
+ super(message);
8
+ this.expected = expected;
9
+ this.actual = actual;
10
+ this.operator = operator;
11
+ this.name = "AssertionError";
12
+ }
13
+ };
14
+ function deepEqual(actual, expected) {
15
+ if (actual === expected) return true;
16
+ if (actual == null || expected == null) return actual === expected;
17
+ if (typeof actual !== typeof expected) return false;
18
+ if (actual instanceof Date && expected instanceof Date) {
19
+ return actual.getTime() === expected.getTime();
20
+ }
21
+ if (actual instanceof RegExp && expected instanceof RegExp) {
22
+ return actual.toString() === expected.toString();
23
+ }
24
+ if (Array.isArray(actual) && Array.isArray(expected)) {
25
+ if (actual.length !== expected.length) return false;
26
+ for (let i = 0; i < actual.length; i++) {
27
+ if (!deepEqual(actual[i], expected[i])) return false;
28
+ }
29
+ return true;
30
+ }
31
+ if (typeof actual === "object" && typeof expected === "object") {
32
+ const actualKeys = Object.keys(actual);
33
+ const expectedKeys = Object.keys(expected);
34
+ if (actualKeys.length !== expectedKeys.length) return false;
35
+ for (const key of actualKeys) {
36
+ if (!expectedKeys.includes(key)) return false;
37
+ if (!deepEqual(actual[key], expected[key])) return false;
38
+ }
39
+ return true;
40
+ }
41
+ return false;
42
+ }
43
+ function generateDiff(actual, expected) {
44
+ const actualStr = typeof actual === "string" ? actual : JSON.stringify(actual, null, 2);
45
+ const expectedStr = typeof expected === "string" ? expected : JSON.stringify(expected, null, 2);
46
+ const diff = diffLines(expectedStr, actualStr);
47
+ return diff.map((part) => {
48
+ const prefix = part.added ? "+" : part.removed ? "-" : " ";
49
+ return part.value.split("\n").map((line) => `${prefix} ${line}`).join("\n");
50
+ }).join("\n");
51
+ }
52
+ function isInDocument(element) {
53
+ if (typeof document === "undefined") return false;
54
+ return document.contains(element);
55
+ }
56
+ function isVisible(element) {
57
+ if (!isInDocument(element)) return false;
58
+ const style = window.getComputedStyle(element);
59
+ return style.display !== "none" && style.visibility !== "hidden" && style.opacity !== "0";
60
+ }
61
+ var ExpectMatcherImpl = class _ExpectMatcherImpl {
62
+ constructor(actual, isNot = false) {
63
+ this.actual = actual;
64
+ this.isNot = isNot;
65
+ }
66
+ get not() {
67
+ return new _ExpectMatcherImpl(this.actual, !this.isNot);
68
+ }
69
+ get resolves() {
70
+ if (!this.isPromise(this.actual)) {
71
+ throw new AssertionError("Expected value to be a Promise");
72
+ }
73
+ return new _ExpectMatcherImpl(
74
+ this.actual.then((value) => value),
75
+ this.isNot
76
+ );
77
+ }
78
+ get rejects() {
79
+ if (!this.isPromise(this.actual)) {
80
+ throw new AssertionError("Expected value to be a Promise");
81
+ }
82
+ return new _ExpectMatcherImpl(
83
+ this.actual.then(
84
+ (value) => {
85
+ throw new Error("Promise did not reject");
86
+ },
87
+ (error) => error
88
+ ),
89
+ this.isNot
90
+ );
91
+ }
92
+ toBe(expected) {
93
+ const passed = this.actual === expected;
94
+ this.assert(
95
+ passed,
96
+ "toBe",
97
+ expected,
98
+ `Expected ${this.format(this.actual)} to be ${this.format(expected)}`
99
+ );
100
+ }
101
+ toEqual(expected) {
102
+ const passed = deepEqual(this.actual, expected);
103
+ this.assert(
104
+ passed,
105
+ "toEqual",
106
+ expected,
107
+ `Expected ${this.format(this.actual)} to equal ${this.format(expected)}`
108
+ );
109
+ }
110
+ toStrictEqual(expected) {
111
+ const passed = this.actual === expected && deepEqual(this.actual, expected);
112
+ this.assert(
113
+ passed,
114
+ "toStrictEqual",
115
+ expected,
116
+ `Expected ${this.format(this.actual)} to strictly equal ${this.format(expected)}`
117
+ );
118
+ }
119
+ toBeTruthy() {
120
+ const passed = Boolean(this.actual);
121
+ this.assert(passed, "toBeTruthy", true, `Expected ${this.format(this.actual)} to be truthy`);
122
+ }
123
+ toBeFalsy() {
124
+ const passed = !Boolean(this.actual);
125
+ this.assert(passed, "toBeFalsy", false, `Expected ${this.format(this.actual)} to be falsy`);
126
+ }
127
+ toBeNull() {
128
+ const passed = this.actual === null;
129
+ this.assert(passed, "toBeNull", null, `Expected ${this.format(this.actual)} to be null`);
130
+ }
131
+ toBeUndefined() {
132
+ const passed = this.actual === void 0;
133
+ this.assert(
134
+ passed,
135
+ "toBeUndefined",
136
+ void 0,
137
+ `Expected ${this.format(this.actual)} to be undefined`
138
+ );
139
+ }
140
+ toBeDefined() {
141
+ const passed = this.actual !== void 0;
142
+ this.assert(
143
+ passed,
144
+ "toBeDefined",
145
+ "defined",
146
+ `Expected ${this.format(this.actual)} to be defined`
147
+ );
148
+ }
149
+ toBeNaN() {
150
+ const passed = Number.isNaN(this.actual);
151
+ this.assert(passed, "toBeNaN", NaN, `Expected ${this.format(this.actual)} to be NaN`);
152
+ }
153
+ toBeInstanceOf(constructor) {
154
+ const passed = this.actual instanceof constructor;
155
+ this.assert(
156
+ passed,
157
+ "toBeInstanceOf",
158
+ constructor,
159
+ `Expected ${this.format(this.actual)} to be instance of ${constructor.name}`
160
+ );
161
+ }
162
+ toBeCloseTo(expected, precision = 2) {
163
+ if (typeof this.actual !== "number" || typeof expected !== "number") {
164
+ throw new AssertionError("Expected both values to be numbers");
165
+ }
166
+ const diff = Math.abs(this.actual - expected);
167
+ const passed = diff < Math.pow(10, -precision) / 2;
168
+ this.assert(
169
+ passed,
170
+ "toBeCloseTo",
171
+ expected,
172
+ `Expected ${this.actual} to be close to ${expected} (precision: ${precision})`
173
+ );
174
+ }
175
+ toMatch(expected) {
176
+ if (typeof this.actual !== "string") {
177
+ throw new AssertionError("Expected value to be a string");
178
+ }
179
+ const regex = typeof expected === "string" ? new RegExp(expected) : expected;
180
+ const passed = regex.test(this.actual);
181
+ this.assert(passed, "toMatch", expected, `Expected "${this.actual}" to match ${expected}`);
182
+ }
183
+ toContain(expected) {
184
+ let passed = false;
185
+ if (typeof this.actual === "string" && typeof expected === "string") {
186
+ passed = this.actual.includes(expected);
187
+ } else if (Array.isArray(this.actual)) {
188
+ passed = this.actual.includes(expected);
189
+ } else if (this.actual && typeof this.actual.has === "function") {
190
+ passed = this.actual.has(expected);
191
+ }
192
+ this.assert(
193
+ passed,
194
+ "toContain",
195
+ expected,
196
+ `Expected ${this.format(this.actual)} to contain ${this.format(expected)}`
197
+ );
198
+ }
199
+ toHaveLength(expected) {
200
+ if (this.actual == null || typeof this.actual.length !== "number") {
201
+ throw new AssertionError("Expected value to have a length property");
202
+ }
203
+ const passed = this.actual.length === expected;
204
+ this.assert(
205
+ passed,
206
+ "toHaveLength",
207
+ expected,
208
+ `Expected length ${this.actual.length} to be ${expected}`
209
+ );
210
+ }
211
+ toContainEqual(expected) {
212
+ if (!Array.isArray(this.actual)) {
213
+ throw new AssertionError("Expected value to be an array");
214
+ }
215
+ const passed = this.actual.some((item) => deepEqual(item, expected));
216
+ this.assert(
217
+ passed,
218
+ "toContainEqual",
219
+ expected,
220
+ `Expected array to contain equal to ${this.format(expected)}`
221
+ );
222
+ }
223
+ toHaveProperty(path, value) {
224
+ const keys = path.split(".");
225
+ let current = this.actual;
226
+ for (const key of keys) {
227
+ if (current == null || !Object.prototype.hasOwnProperty.call(current, key)) {
228
+ this.assert(false, "toHaveProperty", path, `Expected object to have property "${path}"`);
229
+ return;
230
+ }
231
+ current = current[key];
232
+ }
233
+ if (value !== void 0) {
234
+ const passed = deepEqual(current, value);
235
+ this.assert(
236
+ passed,
237
+ "toHaveProperty",
238
+ value,
239
+ `Expected property "${path}" to have value ${this.format(value)}, got ${this.format(current)}`
240
+ );
241
+ } else {
242
+ this.assert(true, "toHaveProperty", path, "");
243
+ }
244
+ }
245
+ toMatchObject(expected) {
246
+ if (typeof this.actual !== "object" || this.actual === null) {
247
+ throw new AssertionError("Expected value to be an object");
248
+ }
249
+ const passed = Object.keys(expected).every(
250
+ (key) => deepEqual(this.actual[key], expected[key])
251
+ );
252
+ this.assert(
253
+ passed,
254
+ "toMatchObject",
255
+ expected,
256
+ `Expected object to match ${this.format(expected)}`
257
+ );
258
+ }
259
+ // DOM-specific matchers
260
+ toBeInTheDocument() {
261
+ if (!(this.actual instanceof Element)) {
262
+ throw new AssertionError("Expected value to be a DOM element");
263
+ }
264
+ const passed = isInDocument(this.actual);
265
+ this.assert(
266
+ passed,
267
+ "toBeInTheDocument",
268
+ "in document",
269
+ "Expected element to be in the document"
270
+ );
271
+ }
272
+ toBeVisible() {
273
+ if (!(this.actual instanceof Element)) {
274
+ throw new AssertionError("Expected value to be a DOM element");
275
+ }
276
+ const passed = isVisible(this.actual);
277
+ this.assert(passed, "toBeVisible", "visible", "Expected element to be visible");
278
+ }
279
+ toBeDisabled() {
280
+ if (!(this.actual instanceof Element)) {
281
+ throw new AssertionError("Expected value to be a DOM element");
282
+ }
283
+ const passed = this.actual.disabled === true || this.actual.hasAttribute("disabled");
284
+ this.assert(passed, "toBeDisabled", "disabled", "Expected element to be disabled");
285
+ }
286
+ toBeEnabled() {
287
+ if (!(this.actual instanceof Element)) {
288
+ throw new AssertionError("Expected value to be a DOM element");
289
+ }
290
+ const passed = this.actual.disabled !== true && !this.actual.hasAttribute("disabled");
291
+ this.assert(passed, "toBeEnabled", "enabled", "Expected element to be enabled");
292
+ }
293
+ toBeChecked() {
294
+ if (!(this.actual instanceof Element)) {
295
+ throw new AssertionError("Expected value to be a DOM element");
296
+ }
297
+ const passed = this.actual.checked === true;
298
+ this.assert(passed, "toBeChecked", "checked", "Expected element to be checked");
299
+ }
300
+ toHaveClass(className) {
301
+ if (!(this.actual instanceof Element)) {
302
+ throw new AssertionError("Expected value to be a DOM element");
303
+ }
304
+ const passed = this.actual.classList.contains(className);
305
+ this.assert(passed, "toHaveClass", className, `Expected element to have class "${className}"`);
306
+ }
307
+ toHaveAttribute(name, value) {
308
+ if (!(this.actual instanceof Element)) {
309
+ throw new AssertionError("Expected value to be a DOM element");
310
+ }
311
+ if (value === void 0) {
312
+ const passed = this.actual.hasAttribute(name);
313
+ this.assert(
314
+ passed,
315
+ "toHaveAttribute",
316
+ `attribute "${name}"`,
317
+ `Expected element to have attribute "${name}"`
318
+ );
319
+ } else {
320
+ const passed = this.actual.getAttribute(name) === value;
321
+ this.assert(
322
+ passed,
323
+ "toHaveAttribute",
324
+ `${name}="${value}"`,
325
+ `Expected element to have attribute "${name}" with value "${value}"`
326
+ );
327
+ }
328
+ }
329
+ toHaveTextContent(text) {
330
+ if (!(this.actual instanceof Element)) {
331
+ throw new AssertionError("Expected value to be a DOM element");
332
+ }
333
+ const textContent = this.actual.textContent || "";
334
+ const passed = typeof text === "string" ? textContent === text : text.test(textContent);
335
+ this.assert(
336
+ passed,
337
+ "toHaveTextContent",
338
+ text,
339
+ `Expected element to have text content "${text}"`
340
+ );
341
+ }
342
+ toHaveValue(value) {
343
+ if (!(this.actual instanceof Element)) {
344
+ throw new AssertionError("Expected value to be a DOM element");
345
+ }
346
+ const actualValue = this.actual.value;
347
+ const passed = actualValue === value;
348
+ this.assert(
349
+ passed,
350
+ "toHaveValue",
351
+ value,
352
+ `Expected element to have value "${value}", got "${actualValue}"`
353
+ );
354
+ }
355
+ // HyperScript-specific matchers
356
+ toHaveCompiledScript() {
357
+ const passed = this.actual && typeof this.actual._hyperscript !== "undefined";
358
+ this.assert(
359
+ passed,
360
+ "toHaveCompiledScript",
361
+ "compiled script",
362
+ "Expected element to have compiled hyperscript"
363
+ );
364
+ }
365
+ toHaveExecutedScript() {
366
+ const passed = this.actual && this.actual._hyperscriptExecuted === true;
367
+ this.assert(
368
+ passed,
369
+ "toHaveExecutedScript",
370
+ "executed script",
371
+ "Expected hyperscript to have executed"
372
+ );
373
+ }
374
+ toHaveTriggeredEvent(eventType) {
375
+ const passed = this.actual && this.actual._triggeredEvents && this.actual._triggeredEvents.includes(eventType);
376
+ this.assert(
377
+ passed,
378
+ "toHaveTriggeredEvent",
379
+ eventType,
380
+ `Expected event "${eventType}" to have been triggered`
381
+ );
382
+ }
383
+ toHaveUpdatedElement() {
384
+ const passed = this.actual && this.actual._wasUpdated === true;
385
+ this.assert(
386
+ passed,
387
+ "toHaveUpdatedElement",
388
+ "updated element",
389
+ "Expected element to have been updated"
390
+ );
391
+ }
392
+ assert(passed, operator, expected, message) {
393
+ if (this.isNot) {
394
+ passed = !passed;
395
+ message = message.replace("Expected", "Expected NOT");
396
+ }
397
+ if (!passed) {
398
+ const error = new AssertionError(message, expected, this.actual, operator);
399
+ if (typeof this.actual === "object" && typeof expected === "object") {
400
+ error.message += "\n\nDiff:\n" + generateDiff(this.actual, expected);
401
+ }
402
+ throw error;
403
+ }
404
+ }
405
+ format(value) {
406
+ if (value === null) return "null";
407
+ if (value === void 0) return "undefined";
408
+ if (typeof value === "string") return `"${value}"`;
409
+ if (typeof value === "function") return value.name || "function";
410
+ if (value instanceof Date) return value.toISOString();
411
+ if (value instanceof RegExp) return value.toString();
412
+ if (Array.isArray(value)) return `[${value.map((v) => this.format(v)).join(", ")}]`;
413
+ if (typeof value === "object") return JSON.stringify(value);
414
+ return String(value);
415
+ }
416
+ isPromise(value) {
417
+ return value && typeof value.then === "function";
418
+ }
419
+ };
420
+ function createExpectAPI() {
421
+ return function expect(actual) {
422
+ return new ExpectMatcherImpl(actual);
423
+ };
424
+ }
425
+ var AssertAPIImpl = class {
426
+ ok(value, message) {
427
+ if (!value) {
428
+ throw new AssertionError(message || `Expected ${value} to be truthy`);
429
+ }
430
+ }
431
+ equal(actual, expected, message) {
432
+ if (actual != expected) {
433
+ throw new AssertionError(
434
+ message || `Expected ${actual} to equal ${expected}`,
435
+ expected,
436
+ actual,
437
+ "equal"
438
+ );
439
+ }
440
+ }
441
+ strictEqual(actual, expected, message) {
442
+ if (actual !== expected) {
443
+ throw new AssertionError(
444
+ message || `Expected ${actual} to strictly equal ${expected}`,
445
+ expected,
446
+ actual,
447
+ "strictEqual"
448
+ );
449
+ }
450
+ }
451
+ notEqual(actual, expected, message) {
452
+ if (actual == expected) {
453
+ throw new AssertionError(
454
+ message || `Expected ${actual} to not equal ${expected}`,
455
+ expected,
456
+ actual,
457
+ "notEqual"
458
+ );
459
+ }
460
+ }
461
+ notStrictEqual(actual, expected, message) {
462
+ if (actual === expected) {
463
+ throw new AssertionError(
464
+ message || `Expected ${actual} to not strictly equal ${expected}`,
465
+ expected,
466
+ actual,
467
+ "notStrictEqual"
468
+ );
469
+ }
470
+ }
471
+ throws(fn, error, message) {
472
+ let thrown = false;
473
+ let actualError;
474
+ try {
475
+ fn();
476
+ } catch (e) {
477
+ thrown = true;
478
+ actualError = e;
479
+ }
480
+ if (!thrown) {
481
+ throw new AssertionError(message || "Expected function to throw");
482
+ }
483
+ if (error && !this.matchesError(actualError, error)) {
484
+ throw new AssertionError(
485
+ message || `Expected function to throw ${error}, but got ${actualError}`,
486
+ error,
487
+ actualError,
488
+ "throws"
489
+ );
490
+ }
491
+ }
492
+ doesNotThrow(fn, message) {
493
+ try {
494
+ fn();
495
+ } catch (e) {
496
+ throw new AssertionError(
497
+ message || `Expected function to not throw, but got: ${e}`,
498
+ "no error",
499
+ e,
500
+ "doesNotThrow"
501
+ );
502
+ }
503
+ }
504
+ ifError(value) {
505
+ if (value) {
506
+ throw value;
507
+ }
508
+ }
509
+ async rejects(promise, error, message) {
510
+ let rejected = false;
511
+ let actualError;
512
+ try {
513
+ await promise;
514
+ } catch (e) {
515
+ rejected = true;
516
+ actualError = e;
517
+ }
518
+ if (!rejected) {
519
+ throw new AssertionError(message || "Expected promise to reject");
520
+ }
521
+ if (error && !this.matchesError(actualError, error)) {
522
+ throw new AssertionError(
523
+ message || `Expected promise to reject with ${error}, but got ${actualError}`,
524
+ error,
525
+ actualError,
526
+ "rejects"
527
+ );
528
+ }
529
+ }
530
+ async doesNotReject(promise, message) {
531
+ try {
532
+ await promise;
533
+ } catch (e) {
534
+ throw new AssertionError(
535
+ message || `Expected promise to not reject, but got: ${e}`,
536
+ "no error",
537
+ e,
538
+ "doesNotReject"
539
+ );
540
+ }
541
+ }
542
+ elementExists(selector, message) {
543
+ if (typeof document === "undefined") {
544
+ throw new AssertionError("DOM not available");
545
+ }
546
+ const element = document.querySelector(selector);
547
+ if (!element) {
548
+ throw new AssertionError(message || `Expected element with selector "${selector}" to exist`);
549
+ }
550
+ }
551
+ elementVisible(selector, message) {
552
+ if (typeof document === "undefined") {
553
+ throw new AssertionError("DOM not available");
554
+ }
555
+ const element = document.querySelector(selector);
556
+ if (!element) {
557
+ throw new AssertionError(`Element with selector "${selector}" does not exist`);
558
+ }
559
+ if (!isVisible(element)) {
560
+ throw new AssertionError(
561
+ message || `Expected element with selector "${selector}" to be visible`
562
+ );
563
+ }
564
+ }
565
+ elementHasClass(selector, className, message) {
566
+ if (typeof document === "undefined") {
567
+ throw new AssertionError("DOM not available");
568
+ }
569
+ const element = document.querySelector(selector);
570
+ if (!element) {
571
+ throw new AssertionError(`Element with selector "${selector}" does not exist`);
572
+ }
573
+ if (!element.classList.contains(className)) {
574
+ throw new AssertionError(
575
+ message || `Expected element with selector "${selector}" to have class "${className}"`
576
+ );
577
+ }
578
+ }
579
+ elementHasText(selector, text, message) {
580
+ if (typeof document === "undefined") {
581
+ throw new AssertionError("DOM not available");
582
+ }
583
+ const element = document.querySelector(selector);
584
+ if (!element) {
585
+ throw new AssertionError(`Element with selector "${selector}" does not exist`);
586
+ }
587
+ if (element.textContent !== text) {
588
+ throw new AssertionError(
589
+ message || `Expected element with selector "${selector}" to have text "${text}"`
590
+ );
591
+ }
592
+ }
593
+ scriptCompiled(script, message) {
594
+ throw new AssertionError(message || "Script compilation assertion not implemented");
595
+ }
596
+ scriptExecuted(script, message) {
597
+ throw new AssertionError(message || "Script execution assertion not implemented");
598
+ }
599
+ eventTriggered(eventType, message) {
600
+ throw new AssertionError(message || "Event trigger assertion not implemented");
601
+ }
602
+ matchesError(actual, expected) {
603
+ if (typeof expected === "string") {
604
+ return actual.message === expected;
605
+ }
606
+ if (expected instanceof RegExp) {
607
+ return expected.test(actual.message);
608
+ }
609
+ if (typeof expected === "function") {
610
+ return actual instanceof expected;
611
+ }
612
+ return actual === expected;
613
+ }
614
+ };
615
+ function createAssertAPI() {
616
+ return new AssertAPIImpl();
617
+ }
618
+
619
+ export { AssertionError, createAssertAPI, createExpectAPI };
620
+ //# sourceMappingURL=assertions.mjs.map
621
+ //# sourceMappingURL=assertions.mjs.map