ultimate-jekyll-manager 1.9.0 → 1.9.1
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/CHANGELOG.md +12 -0
- package/PROGRESS.md +24 -0
- package/dist/assets/js/libs/form-manager.js +15 -4
- package/dist/assets/js/pages/test/libraries/form-manager/index.js +53 -0
- package/dist/defaults/dist/pages/test/libraries/form-manager.html +72 -0
- package/dist/test/suites/page/form-manager-data.test.js +418 -0
- package/dist/test/suites/page/form-manager-disabled.test.js +170 -0
- package/dist/test/suites/page/form-manager-validation.test.js +374 -0
- package/docs/javascript-libraries.md +13 -3
- package/logs/test.log +72 -39
- package/package.json +1 -1
package/logs/test.log
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# ujm log — 2026-06-
|
|
2
|
-
[
|
|
3
|
-
[
|
|
1
|
+
# ujm log — 2026-06-18T02:44:23.186Z — pid=67215
|
|
2
|
+
[19:44:23] 'test': Running tests (layer=all)
|
|
3
|
+
[19:44:23] 'test': Test mode: normal (external APIs skipped)
|
|
4
4
|
|
|
5
5
|
Ultimate Jekyll Manager Tests
|
|
6
6
|
|
|
7
7
|
Framework Tests
|
|
8
8
|
⤷ attach-log-file — tee stdout/stderr to a file
|
|
9
9
|
✓ exports the expected surface (0ms)
|
|
10
|
-
✓ stripAnsi removes color escape codes (
|
|
10
|
+
✓ stripAnsi removes color escape codes (0ms)
|
|
11
11
|
hello world
|
|
12
12
|
colored line
|
|
13
13
|
✓ attach + stdout.write + detach: file contains the writes (0ms)
|
|
14
14
|
✓ idempotent: attaching twice with same name returns same fd (0ms)
|
|
15
15
|
✓ attach with falsy name returns null and does nothing (0ms)
|
|
16
16
|
⤷ CLI alias resolution
|
|
17
|
-
✓ cli.js exports a Main class (
|
|
18
|
-
✓ all expected commands exist on disk (
|
|
19
|
-
✓ each command module exports an async function (
|
|
17
|
+
✓ cli.js exports a Main class (0ms)
|
|
18
|
+
✓ all expected commands exist on disk (1ms)
|
|
19
|
+
✓ each command module exports an async function (3ms)
|
|
20
20
|
⤷ collectTextNodes (utils/collectTextNodes.js)
|
|
21
|
-
✓ extracts page title (
|
|
21
|
+
✓ extracts page title (107ms)
|
|
22
22
|
✓ skips <script> and <style> (1ms)
|
|
23
|
-
✓ spellcheck dictionary (utils/dictionary.js) (
|
|
23
|
+
✓ spellcheck dictionary (utils/dictionary.js) (1ms)
|
|
24
24
|
⤷ expect() matcher set
|
|
25
25
|
✓ toBe + toEqual basics (0ms)
|
|
26
26
|
✓ .not negates (0ms)
|
|
27
27
|
✓ toContain works on arrays and strings (0ms)
|
|
28
|
-
✓ toThrow catches sync + async throws (
|
|
28
|
+
✓ toThrow catches sync + async throws (0ms)
|
|
29
29
|
✓ toBeGreaterThan / toBeLessThan (0ms)
|
|
30
30
|
✓ failing assertions throw AssertionError (0ms)
|
|
31
31
|
✓ package.json exports resolve to real files in dist/ (0ms)
|
|
@@ -44,16 +44,16 @@ colored line
|
|
|
44
44
|
✓ actLikeProduction is true when isBuildMode OR UJ_AUDIT_FORCE (0ms)
|
|
45
45
|
✓ getRootPath("package") points at UJM root (0ms)
|
|
46
46
|
✓ getMemoryUsage returns shape with MB-sized numbers (0ms)
|
|
47
|
-
✓ getArguments returns object with _ array + boolean defaults (
|
|
47
|
+
✓ getArguments returns object with _ array + boolean defaults (0ms)
|
|
48
48
|
✓ logger returns object with log/error/warn/info methods (0ms)
|
|
49
49
|
✓ processBatches processes items in chunks and returns flat results (0ms)
|
|
50
50
|
⤷ mergeJekyllConfigs (utils/merge-jekyll-configs.js)
|
|
51
51
|
✓ merges collections from both configs (project additions win) (3ms)
|
|
52
52
|
✓ dedups defaults by scope key (project wins) (1ms)
|
|
53
|
-
✓ returns null when there is nothing to merge (
|
|
53
|
+
✓ returns null when there is nothing to merge (1ms)
|
|
54
54
|
⤷ mode-helpers (isTesting / isDevelopment / isProduction / getVersion)
|
|
55
55
|
✓ helpers attach to Manager statically AND on prototype (0ms)
|
|
56
|
-
✓ isTesting reflects UJ_TEST_MODE env (
|
|
56
|
+
✓ isTesting reflects UJ_TEST_MODE env (0ms)
|
|
57
57
|
✓ isDevelopment false / isProduction true when UJ_BUILD_MODE=true (and not testing) (0ms)
|
|
58
58
|
✓ environments are mutually exclusive — testing wins under UJ_TEST_MODE (0ms)
|
|
59
59
|
✓ invariant: is*() exactly matches getEnvironment() + mutually exclusive (every scenario) (0ms)
|
|
@@ -63,49 +63,82 @@ colored line
|
|
|
63
63
|
✓ leaves non-matching extensions untouched (e.g. .css) (0ms)
|
|
64
64
|
✓ passes directories through untouched (0ms)
|
|
65
65
|
⤷ node-powertools templating brackets ({} and [])
|
|
66
|
-
✓ default { } brackets resolve nested keys (
|
|
66
|
+
✓ default { } brackets resolve nested keys (1ms)
|
|
67
67
|
✓ [ ] brackets resolve nested keys when explicitly configured (0ms)
|
|
68
68
|
✓ [ ] brackets leave Jekyll {{ }} placeholders alone (0ms)
|
|
69
69
|
⤷ theme contract (structure, swappability, cross-theme JS contracts)
|
|
70
70
|
✓ _template: entry files + config contract (0ms)
|
|
71
|
-
✓ classy: entry files + config contract (
|
|
72
|
-
✓ neobrutalism: entry files + config contract (
|
|
71
|
+
✓ classy: entry files + config contract (1ms)
|
|
72
|
+
✓ neobrutalism: entry files + config contract (0ms)
|
|
73
73
|
✓ newsflash: entry files + config contract (0ms)
|
|
74
|
-
✓ _template: layouts swappable, markup clean (
|
|
75
|
-
✓ classy: layouts swappable, markup clean (
|
|
76
|
-
✓ neobrutalism: layouts swappable, markup clean (
|
|
77
|
-
✓ newsflash: layouts swappable, markup clean (
|
|
74
|
+
✓ _template: layouts swappable, markup clean (2ms)
|
|
75
|
+
✓ classy: layouts swappable, markup clean (15ms)
|
|
76
|
+
✓ neobrutalism: layouts swappable, markup clean (2ms)
|
|
77
|
+
✓ newsflash: layouts swappable, markup clean (2ms)
|
|
78
78
|
✓ _template: cross-theme JS contracts (0ms)
|
|
79
|
-
✓ classy: cross-theme JS contracts (
|
|
80
|
-
✓ neobrutalism: cross-theme JS contracts (
|
|
81
|
-
✓ newsflash: cross-theme JS contracts (
|
|
82
|
-
✓ page asset files match a declared asset_path shape (
|
|
79
|
+
✓ classy: cross-theme JS contracts (1ms)
|
|
80
|
+
✓ neobrutalism: cross-theme JS contracts (0ms)
|
|
81
|
+
✓ newsflash: cross-theme JS contracts (1ms)
|
|
82
|
+
✓ page asset files match a declared asset_path shape (3ms)
|
|
83
83
|
⤷ validateYAMLFrontMatter (utils/_validate-yaml.js)
|
|
84
|
-
✓ returns { valid: true } for a file with valid frontmatter (
|
|
85
|
-
✓ returns { valid: true } when no frontmatter present (
|
|
84
|
+
✓ returns { valid: true } for a file with valid frontmatter (0ms)
|
|
85
|
+
✓ returns { valid: true } when no frontmatter present (1ms)
|
|
86
86
|
✓ flags malformed YAML frontmatter as invalid with error message (0ms)
|
|
87
87
|
⤷ page-layer baseline (DOM + fetch + storage)
|
|
88
|
-
✓ document is interactive or complete (
|
|
89
|
-
✓ fetch() works against the local harness server (
|
|
90
|
-
✓ localStorage is available (
|
|
88
|
+
✓ document is interactive or complete (1ms)
|
|
89
|
+
✓ fetch() works against the local harness server (11ms)
|
|
90
|
+
✓ localStorage is available (2ms)
|
|
91
|
+
⤷ FormManager getData / setData / input groups
|
|
92
|
+
✓ _setNested builds nested objects from dot paths (1ms)
|
|
93
|
+
✓ _setNested accumulates duplicate keys into arrays (1ms)
|
|
94
|
+
✓ _getNested reads nested values and returns undefined for missing paths (0ms)
|
|
95
|
+
✓ _flattenObject converts nested objects to dot paths (2ms)
|
|
96
|
+
✓ getData collects text, select, radio, and textarea values with dot notation (8ms)
|
|
97
|
+
✓ getData handles single checkbox (boolean) and checkbox groups (object) (1ms)
|
|
98
|
+
✓ getData excludes honeypot fields (0ms)
|
|
99
|
+
✓ input group filter includes matching + global fields, excludes others (0ms)
|
|
100
|
+
✓ input group filter with multiple groups includes all matching (0ms)
|
|
101
|
+
✓ setData populates text, select, textarea fields (1ms)
|
|
102
|
+
✓ setData sets radio group to matching value (0ms)
|
|
103
|
+
✓ setData sets single checkbox boolean and checkbox group values (0ms)
|
|
104
|
+
⤷ FormManager disabled-state snapshot
|
|
105
|
+
✓ snapshot captures disabled non-submit elements, ignores submit buttons (0ms)
|
|
106
|
+
✓ setDisabled(true) disables everything (1ms)
|
|
107
|
+
✓ setDisabled(false) re-enables managed elements but keeps snapshotted ones disabled (0ms)
|
|
108
|
+
✓ survives multiple disable/enable cycles (0ms)
|
|
109
|
+
✓ onsubmit="return false" blocks native submission before FM loads (20ms)
|
|
110
|
+
⤷ FormManager validation + honeypot + file-accept
|
|
111
|
+
✓ required text field fails when empty, passes when filled (0ms)
|
|
112
|
+
✓ required checkbox fails when unchecked (0ms)
|
|
113
|
+
✓ required radio group fails when none checked (0ms)
|
|
114
|
+
✓ email validation rejects invalid formats and accepts valid ones (3ms)
|
|
115
|
+
✓ number min/max validation catches out-of-range values (1ms)
|
|
116
|
+
✓ minlength and maxlength validation (0ms)
|
|
117
|
+
✓ pattern attribute validation (0ms)
|
|
118
|
+
✓ honeypot detection catches [data-honey] and [name="honey"] fields (0ms)
|
|
119
|
+
✓ honeypot detects data-honey without name="honey" (0ms)
|
|
120
|
+
✓ file-accept matching: extension, wildcard MIME, exact MIME (1ms)
|
|
121
|
+
✓ field error display adds is-invalid class and feedback element (0ms)
|
|
122
|
+
✓ query param population skips UTM/tracking params (0ms)
|
|
123
|
+
✓ data-form-state attribute reflects state transitions (0ms)
|
|
91
124
|
⤷ harness globals (window.Configuration + dataset)
|
|
92
125
|
✓ window.Configuration has brand + theme + web_manager (0ms)
|
|
93
126
|
✓ document.documentElement.dataset.pagePath is set (0ms)
|
|
94
127
|
✓ UJ_TEST_MODE is signalled on globalThis (0ms)
|
|
95
128
|
⤷ prerendered icons template lookup
|
|
96
|
-
✓ template#prerendered-icons exists and has the test icon (
|
|
129
|
+
✓ template#prerendered-icons exists and has the test icon (1ms)
|
|
97
130
|
✓ looking up a missing icon returns null (0ms)
|
|
98
131
|
⤷ boot tests (consumer _site/)
|
|
99
|
-
✓ /service-worker.js served with javascript content type (
|
|
100
|
-
✓ index.html registers SW and reaches activated state (
|
|
101
|
-
✓ SW responds to get-cache-name message with brand-id pattern (
|
|
102
|
-
✓ home page renders with title + body content (
|
|
103
|
-
✓ /about resolves via Jekyll-style .html fallback (
|
|
104
|
-
✓ build.json is served with brand metadata (
|
|
105
|
-
✓ CSS bundle served with text/css content type (
|
|
132
|
+
✓ /service-worker.js served with javascript content type (97ms)
|
|
133
|
+
✓ index.html registers SW and reaches activated state (251ms)
|
|
134
|
+
✓ SW responds to get-cache-name message with brand-id pattern (85ms)
|
|
135
|
+
✓ home page renders with title + body content (184ms)
|
|
136
|
+
✓ /about resolves via Jekyll-style .html fallback (71ms)
|
|
137
|
+
✓ build.json is served with brand metadata (78ms)
|
|
138
|
+
✓ CSS bundle served with text/css content type (73ms)
|
|
106
139
|
|
|
107
140
|
Results
|
|
108
|
-
|
|
141
|
+
110 passing
|
|
109
142
|
|
|
110
|
-
Total:
|
|
143
|
+
Total: 110 tests in 3457ms
|
|
111
144
|
|