Commit 11da881
committed
feat: add nested global field support in test config and helpers
Adds NESTED_GLOBAL_FIELD_UID environment variable support and a 671-line
comprehensive test suite for nested global fields.
test/config.js:
- Added nested global field entry reading from NESTED_GLOBAL_FIELD_UID
- Added fallback env var names for global fields (GLOBAL_FIELD_UID,
SIMPLE/MEDIUM/COMPLEX_GLOBAL_FIELD_UID) for broader stack compatibility
test/helpers/TestDataHelper.js:
- Added getNestedGlobalFieldUID() accessor method
test/integration/GlobalFieldsTests/NestedGlobalField.test.js (new):
- 671-line test suite for nested global field resolution
- Covers: 6-level deep nesting, child field access, projection with
nested fields, reference resolution inside nested structures,
array handling, and circular reference safety1 parent c206caa commit 11da881
4 files changed
Lines changed: 690 additions & 6 deletions
File tree
- test
- helpers
- integration/GlobalFieldsTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
| |||
0 commit comments