@auto-engineer/narrative 0.19.1 → 0.20.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-format.log +4 -0
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-test.log +14 -0
- package/.turbo/turbo-type-check.log +4 -0
- package/CHANGELOG.md +4 -7
- package/dist/src/commands/export-schema-runner.d.ts +3 -0
- package/dist/src/commands/export-schema-runner.d.ts.map +1 -0
- package/dist/src/commands/export-schema-runner.js +48 -0
- package/dist/src/commands/export-schema-runner.js.map +1 -0
- package/dist/src/fluent-builder.specs.d.ts +2 -0
- package/dist/src/fluent-builder.specs.d.ts.map +1 -0
- package/dist/src/fluent-builder.specs.js +28 -0
- package/dist/src/fluent-builder.specs.js.map +1 -0
- package/dist/src/getNarratives.cache.specs.d.ts +2 -0
- package/dist/src/getNarratives.cache.specs.d.ts.map +1 -0
- package/dist/src/getNarratives.cache.specs.js +234 -0
- package/dist/src/getNarratives.cache.specs.js.map +1 -0
- package/dist/src/getNarratives.specs.d.ts +2 -0
- package/dist/src/getNarratives.specs.d.ts.map +1 -0
- package/dist/src/getNarratives.specs.js +1307 -0
- package/dist/src/getNarratives.specs.js.map +1 -0
- package/dist/src/id/addAutoIds.specs.d.ts +2 -0
- package/dist/src/id/addAutoIds.specs.d.ts.map +1 -0
- package/dist/src/id/addAutoIds.specs.js +602 -0
- package/dist/src/id/addAutoIds.specs.js.map +1 -0
- package/dist/src/id/hasAllIds.specs.d.ts +2 -0
- package/dist/src/id/hasAllIds.specs.d.ts.map +1 -0
- package/dist/src/id/hasAllIds.specs.js +424 -0
- package/dist/src/id/hasAllIds.specs.js.map +1 -0
- package/dist/src/model-to-narrative.specs.d.ts +2 -0
- package/dist/src/model-to-narrative.specs.d.ts.map +1 -0
- package/dist/src/model-to-narrative.specs.js +2437 -0
- package/dist/src/model-to-narrative.specs.js.map +1 -0
- package/dist/src/narrative-context.specs.d.ts +2 -0
- package/dist/src/narrative-context.specs.d.ts.map +1 -0
- package/dist/src/narrative-context.specs.js +260 -0
- package/dist/src/narrative-context.specs.js.map +1 -0
- package/dist/src/schema.d.ts +302 -302
- package/dist/src/transformers/model-to-narrative/generators/gwt.specs.d.ts +2 -0
- package/dist/src/transformers/model-to-narrative/generators/gwt.specs.d.ts.map +1 -0
- package/dist/src/transformers/model-to-narrative/generators/gwt.specs.js +142 -0
- package/dist/src/transformers/model-to-narrative/generators/gwt.specs.js.map +1 -0
- package/dist/src/transformers/narrative-to-model/type-inference.specs.d.ts +2 -0
- package/dist/src/transformers/narrative-to-model/type-inference.specs.d.ts.map +1 -0
- package/dist/src/transformers/narrative-to-model/type-inference.specs.js +177 -0
- package/dist/src/transformers/narrative-to-model/type-inference.specs.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,602 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { addAutoIds } from './/index.js';
|
|
3
|
+
describe('addAutoIds', () => {
|
|
4
|
+
const flows = {
|
|
5
|
+
variant: 'specs',
|
|
6
|
+
narratives: [
|
|
7
|
+
{
|
|
8
|
+
name: 'Test Flow',
|
|
9
|
+
slices: [
|
|
10
|
+
{
|
|
11
|
+
type: 'command',
|
|
12
|
+
name: 'Test Command Slice',
|
|
13
|
+
client: { specs: [] },
|
|
14
|
+
server: {
|
|
15
|
+
description: 'Test server',
|
|
16
|
+
specs: [
|
|
17
|
+
{
|
|
18
|
+
type: 'gherkin',
|
|
19
|
+
feature: 'Test Specs',
|
|
20
|
+
rules: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Test rule without ID',
|
|
23
|
+
examples: [],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'EXISTING-RULE-001',
|
|
27
|
+
name: 'Test rule with existing ID',
|
|
28
|
+
examples: [],
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'query',
|
|
37
|
+
name: 'Test Query Slice',
|
|
38
|
+
id: 'EXISTING-SLICE-001',
|
|
39
|
+
client: { specs: [] },
|
|
40
|
+
server: {
|
|
41
|
+
description: 'Test server',
|
|
42
|
+
specs: [
|
|
43
|
+
{
|
|
44
|
+
type: 'gherkin',
|
|
45
|
+
feature: 'Test Specs',
|
|
46
|
+
rules: [],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Flow with ID',
|
|
55
|
+
id: 'EXISTING-FLOW-001',
|
|
56
|
+
slices: [
|
|
57
|
+
{
|
|
58
|
+
type: 'react',
|
|
59
|
+
name: 'React Slice',
|
|
60
|
+
server: {
|
|
61
|
+
specs: [
|
|
62
|
+
{
|
|
63
|
+
type: 'gherkin',
|
|
64
|
+
feature: 'React Specs',
|
|
65
|
+
rules: [
|
|
66
|
+
{
|
|
67
|
+
name: 'React rule',
|
|
68
|
+
examples: [],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
messages: [],
|
|
79
|
+
integrations: [],
|
|
80
|
+
};
|
|
81
|
+
const AUTO_ID_REGEX = /^[A-Za-z0-9_]{9}$/;
|
|
82
|
+
it('should assign IDs to entities that do not have them', () => {
|
|
83
|
+
const result = addAutoIds(flows);
|
|
84
|
+
expect(result.narratives[0].id).toMatch(AUTO_ID_REGEX);
|
|
85
|
+
expect(result.narratives[1].id).toBe('EXISTING-FLOW-001');
|
|
86
|
+
expect(result.narratives[0].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
87
|
+
expect(result.narratives[0].slices[1].id).toBe('EXISTING-SLICE-001');
|
|
88
|
+
expect(result.narratives[1].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
89
|
+
const slice0 = result.narratives[0].slices[0];
|
|
90
|
+
const slice1 = result.narratives[1].slices[0];
|
|
91
|
+
if ('server' in slice0 && slice0.server?.specs != null && Array.isArray(slice0.server.specs)) {
|
|
92
|
+
expect(slice0.server.specs[0].rules[0].id).toMatch(AUTO_ID_REGEX);
|
|
93
|
+
expect(slice0.server.specs[0].rules[1].id).toBe('EXISTING-RULE-001');
|
|
94
|
+
}
|
|
95
|
+
if ('server' in slice1 && slice1.server?.specs != null && Array.isArray(slice1.server.specs)) {
|
|
96
|
+
expect(slice1.server.specs[0].rules[0].id).toMatch(AUTO_ID_REGEX);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
it('should not mutate the original flows', () => {
|
|
100
|
+
const originalFlow = flows.narratives[0];
|
|
101
|
+
const originalSlice = originalFlow.slices[0];
|
|
102
|
+
addAutoIds(flows);
|
|
103
|
+
expect(originalFlow.id).toBeUndefined();
|
|
104
|
+
expect(originalSlice.id).toBeUndefined();
|
|
105
|
+
if ('server' in originalSlice &&
|
|
106
|
+
originalSlice.server?.specs !== undefined &&
|
|
107
|
+
Array.isArray(originalSlice.server.specs) &&
|
|
108
|
+
originalSlice.server.specs.length > 0) {
|
|
109
|
+
expect(originalSlice.server.specs[0].rules[0].id).toBeUndefined();
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
it('should preserve existing IDs and not overwrite them', () => {
|
|
113
|
+
const result = addAutoIds(flows);
|
|
114
|
+
expect(result.narratives[1].id).toBe('EXISTING-FLOW-001');
|
|
115
|
+
expect(result.narratives[0].slices[1].id).toBe('EXISTING-SLICE-001');
|
|
116
|
+
const testSlice = result.narratives[0].slices[0];
|
|
117
|
+
if ('server' in testSlice && testSlice.server?.specs != null && Array.isArray(testSlice.server.specs)) {
|
|
118
|
+
expect(testSlice.server.specs[0].rules[1].id).toBe('EXISTING-RULE-001');
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
it('should handle flows without server blocks', () => {
|
|
122
|
+
const modelWithoutServer = {
|
|
123
|
+
variant: 'specs',
|
|
124
|
+
narratives: [
|
|
125
|
+
{
|
|
126
|
+
name: 'Simple Flow',
|
|
127
|
+
slices: [
|
|
128
|
+
{
|
|
129
|
+
type: 'command',
|
|
130
|
+
name: 'Simple Command',
|
|
131
|
+
client: { specs: [] },
|
|
132
|
+
server: {
|
|
133
|
+
description: 'Simple server',
|
|
134
|
+
specs: [
|
|
135
|
+
{
|
|
136
|
+
type: 'gherkin',
|
|
137
|
+
feature: 'Simple specs',
|
|
138
|
+
rules: [],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
messages: [],
|
|
147
|
+
integrations: [],
|
|
148
|
+
};
|
|
149
|
+
const result = addAutoIds(modelWithoutServer);
|
|
150
|
+
expect(result.narratives[0].id).toMatch(AUTO_ID_REGEX);
|
|
151
|
+
expect(result.narratives[0].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
152
|
+
});
|
|
153
|
+
it('should generate unique IDs for multiple calls', () => {
|
|
154
|
+
const result1 = addAutoIds(flows);
|
|
155
|
+
const result2 = addAutoIds(flows);
|
|
156
|
+
expect(result1.narratives[0].id).not.toBe(result2.narratives[0].id);
|
|
157
|
+
expect(result1.narratives[0].slices[0].id).not.toBe(result2.narratives[0].slices[0].id);
|
|
158
|
+
});
|
|
159
|
+
it('should assign IDs to experience slices', () => {
|
|
160
|
+
const modelWithExperienceSlice = {
|
|
161
|
+
variant: 'specs',
|
|
162
|
+
narratives: [
|
|
163
|
+
{
|
|
164
|
+
name: 'Experience Flow',
|
|
165
|
+
slices: [
|
|
166
|
+
{
|
|
167
|
+
type: 'experience',
|
|
168
|
+
name: 'User Onboarding Experience',
|
|
169
|
+
client: {
|
|
170
|
+
specs: [
|
|
171
|
+
{ type: 'it', title: 'User should see welcome message' },
|
|
172
|
+
{ type: 'it', title: 'User should complete profile setup' },
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
type: 'experience',
|
|
178
|
+
name: 'Checkout Experience',
|
|
179
|
+
id: 'EXISTING-EXPERIENCE-SLICE-001',
|
|
180
|
+
client: {
|
|
181
|
+
specs: [{ type: 'it', title: 'User should review cart items' }],
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
messages: [],
|
|
188
|
+
integrations: [],
|
|
189
|
+
};
|
|
190
|
+
const result = addAutoIds(modelWithExperienceSlice);
|
|
191
|
+
expect(result.narratives[0].id).toMatch(AUTO_ID_REGEX);
|
|
192
|
+
expect(result.narratives[0].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
193
|
+
expect(result.narratives[0].slices[1].id).toBe('EXISTING-EXPERIENCE-SLICE-001');
|
|
194
|
+
});
|
|
195
|
+
it('should assign unique IDs to multiple flows with same sourceFile', () => {
|
|
196
|
+
const modelWithMultipleFlowsSameSource = {
|
|
197
|
+
variant: 'specs',
|
|
198
|
+
narratives: [
|
|
199
|
+
{
|
|
200
|
+
name: 'Home Screen',
|
|
201
|
+
sourceFile: '/path/to/homepage.narrative.ts',
|
|
202
|
+
slices: [
|
|
203
|
+
{
|
|
204
|
+
name: 'Active Surveys Summary',
|
|
205
|
+
type: 'experience',
|
|
206
|
+
client: {
|
|
207
|
+
specs: [{ type: 'it', title: 'show active surveys summary' }],
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'Create Survey',
|
|
214
|
+
sourceFile: '/path/to/homepage.narrative.ts',
|
|
215
|
+
slices: [
|
|
216
|
+
{
|
|
217
|
+
name: 'Create Survey Form',
|
|
218
|
+
type: 'experience',
|
|
219
|
+
client: {
|
|
220
|
+
specs: [{ type: 'it', title: 'allow entering survey title' }],
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'Response Analytics',
|
|
227
|
+
sourceFile: '/path/to/homepage.narrative.ts',
|
|
228
|
+
slices: [
|
|
229
|
+
{
|
|
230
|
+
name: 'Response Rate Charts',
|
|
231
|
+
type: 'experience',
|
|
232
|
+
client: {
|
|
233
|
+
specs: [{ type: 'it', title: 'show daily response rate charts' }],
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
messages: [],
|
|
240
|
+
integrations: [],
|
|
241
|
+
};
|
|
242
|
+
const result = addAutoIds(modelWithMultipleFlowsSameSource);
|
|
243
|
+
expect(result.narratives[0].id).toMatch(AUTO_ID_REGEX);
|
|
244
|
+
expect(result.narratives[1].id).toMatch(AUTO_ID_REGEX);
|
|
245
|
+
expect(result.narratives[2].id).toMatch(AUTO_ID_REGEX);
|
|
246
|
+
expect(result.narratives[0].id).not.toBe(result.narratives[1].id);
|
|
247
|
+
expect(result.narratives[0].id).not.toBe(result.narratives[2].id);
|
|
248
|
+
expect(result.narratives[1].id).not.toBe(result.narratives[2].id);
|
|
249
|
+
expect(result.narratives[0].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
250
|
+
expect(result.narratives[1].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
251
|
+
expect(result.narratives[2].slices[0].id).toMatch(AUTO_ID_REGEX);
|
|
252
|
+
expect(result.narratives[0].slices[0].id).not.toBe(result.narratives[1].slices[0].id);
|
|
253
|
+
expect(result.narratives[0].slices[0].id).not.toBe(result.narratives[2].slices[0].id);
|
|
254
|
+
expect(result.narratives[1].slices[0].id).not.toBe(result.narratives[2].slices[0].id);
|
|
255
|
+
expect(result.narratives[0].sourceFile).toBe('/path/to/homepage.narrative.ts');
|
|
256
|
+
expect(result.narratives[1].sourceFile).toBe('/path/to/homepage.narrative.ts');
|
|
257
|
+
expect(result.narratives[2].sourceFile).toBe('/path/to/homepage.narrative.ts');
|
|
258
|
+
});
|
|
259
|
+
it('should assign IDs to specs', () => {
|
|
260
|
+
const modelWithSpecs = {
|
|
261
|
+
variant: 'specs',
|
|
262
|
+
narratives: [
|
|
263
|
+
{
|
|
264
|
+
name: 'Test Flow',
|
|
265
|
+
slices: [
|
|
266
|
+
{
|
|
267
|
+
type: 'command',
|
|
268
|
+
name: 'Test Command',
|
|
269
|
+
client: { specs: [] },
|
|
270
|
+
server: {
|
|
271
|
+
description: 'Test server',
|
|
272
|
+
specs: [
|
|
273
|
+
{
|
|
274
|
+
type: 'gherkin',
|
|
275
|
+
feature: 'Test Feature',
|
|
276
|
+
rules: [],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
id: 'EXISTING-SPEC-001',
|
|
280
|
+
type: 'gherkin',
|
|
281
|
+
feature: 'Existing Feature',
|
|
282
|
+
rules: [],
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
messages: [],
|
|
291
|
+
integrations: [],
|
|
292
|
+
};
|
|
293
|
+
const result = addAutoIds(modelWithSpecs);
|
|
294
|
+
const slice = result.narratives[0].slices[0];
|
|
295
|
+
if ('server' in slice && slice.server?.specs != null && Array.isArray(slice.server.specs)) {
|
|
296
|
+
expect(slice.server.specs[0].id).toMatch(AUTO_ID_REGEX);
|
|
297
|
+
expect(slice.server.specs[1].id).toBe('EXISTING-SPEC-001');
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
it('should assign IDs to steps', () => {
|
|
301
|
+
const modelWithSteps = {
|
|
302
|
+
variant: 'specs',
|
|
303
|
+
narratives: [
|
|
304
|
+
{
|
|
305
|
+
name: 'Test Flow',
|
|
306
|
+
slices: [
|
|
307
|
+
{
|
|
308
|
+
type: 'command',
|
|
309
|
+
name: 'Test Command',
|
|
310
|
+
client: { specs: [] },
|
|
311
|
+
server: {
|
|
312
|
+
description: 'Test server',
|
|
313
|
+
specs: [
|
|
314
|
+
{
|
|
315
|
+
type: 'gherkin',
|
|
316
|
+
feature: 'Test Feature',
|
|
317
|
+
rules: [
|
|
318
|
+
{
|
|
319
|
+
name: 'Test Rule',
|
|
320
|
+
examples: [
|
|
321
|
+
{
|
|
322
|
+
name: 'Test Example',
|
|
323
|
+
steps: [
|
|
324
|
+
{ keyword: 'Given', text: 'TestState', docString: { value: 'test' } },
|
|
325
|
+
{ keyword: 'When', text: 'TestCommand' },
|
|
326
|
+
{ id: 'EXISTING-STEP-001', keyword: 'Then', text: 'TestEvent' },
|
|
327
|
+
],
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
messages: [],
|
|
340
|
+
integrations: [],
|
|
341
|
+
};
|
|
342
|
+
const result = addAutoIds(modelWithSteps);
|
|
343
|
+
const slice = result.narratives[0].slices[0];
|
|
344
|
+
if ('server' in slice && slice.server?.specs != null && Array.isArray(slice.server.specs)) {
|
|
345
|
+
const steps = slice.server.specs[0].rules[0].examples[0].steps;
|
|
346
|
+
expect(steps[0].id).toMatch(AUTO_ID_REGEX);
|
|
347
|
+
expect(steps[1].id).toMatch(AUTO_ID_REGEX);
|
|
348
|
+
expect(steps[2].id).toBe('EXISTING-STEP-001');
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
it('should preserve existing example IDs', () => {
|
|
352
|
+
const modelWithExistingExampleId = {
|
|
353
|
+
variant: 'specs',
|
|
354
|
+
narratives: [
|
|
355
|
+
{
|
|
356
|
+
name: 'Test Flow',
|
|
357
|
+
slices: [
|
|
358
|
+
{
|
|
359
|
+
type: 'command',
|
|
360
|
+
name: 'Test Command',
|
|
361
|
+
client: { specs: [] },
|
|
362
|
+
server: {
|
|
363
|
+
description: 'Test server',
|
|
364
|
+
specs: [
|
|
365
|
+
{
|
|
366
|
+
type: 'gherkin',
|
|
367
|
+
feature: 'Test Feature',
|
|
368
|
+
rules: [
|
|
369
|
+
{
|
|
370
|
+
name: 'Test Rule',
|
|
371
|
+
examples: [
|
|
372
|
+
{
|
|
373
|
+
name: 'Example without id',
|
|
374
|
+
steps: [{ keyword: 'Given', text: 'TestState' }],
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
id: 'EXISTING-EXAMPLE-001',
|
|
378
|
+
name: 'Example with existing id',
|
|
379
|
+
steps: [{ keyword: 'Given', text: 'TestState' }],
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
messages: [],
|
|
392
|
+
integrations: [],
|
|
393
|
+
};
|
|
394
|
+
const result = addAutoIds(modelWithExistingExampleId);
|
|
395
|
+
const slice = result.narratives[0].slices[0];
|
|
396
|
+
if ('server' in slice && slice.server?.specs != null && Array.isArray(slice.server.specs)) {
|
|
397
|
+
const examples = slice.server.specs[0].rules[0].examples;
|
|
398
|
+
expect(examples[0].id).toMatch(AUTO_ID_REGEX);
|
|
399
|
+
expect(examples[1].id).toBe('EXISTING-EXAMPLE-001');
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
it('should assign IDs to steps with errors', () => {
|
|
403
|
+
const modelWithErrorSteps = {
|
|
404
|
+
variant: 'specs',
|
|
405
|
+
narratives: [
|
|
406
|
+
{
|
|
407
|
+
name: 'Test Flow',
|
|
408
|
+
slices: [
|
|
409
|
+
{
|
|
410
|
+
type: 'command',
|
|
411
|
+
name: 'Test Command',
|
|
412
|
+
client: { specs: [] },
|
|
413
|
+
server: {
|
|
414
|
+
description: 'Test server',
|
|
415
|
+
specs: [
|
|
416
|
+
{
|
|
417
|
+
type: 'gherkin',
|
|
418
|
+
feature: 'Test Feature',
|
|
419
|
+
rules: [
|
|
420
|
+
{
|
|
421
|
+
name: 'Error Rule',
|
|
422
|
+
examples: [
|
|
423
|
+
{
|
|
424
|
+
name: 'Error Example',
|
|
425
|
+
steps: [
|
|
426
|
+
{ keyword: 'Given', text: 'TestState' },
|
|
427
|
+
{ keyword: 'When', text: 'InvalidCommand' },
|
|
428
|
+
{ keyword: 'Then', error: { type: 'ValidationError', message: 'Invalid input' } },
|
|
429
|
+
],
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
messages: [],
|
|
442
|
+
integrations: [],
|
|
443
|
+
};
|
|
444
|
+
const result = addAutoIds(modelWithErrorSteps);
|
|
445
|
+
const slice = result.narratives[0].slices[0];
|
|
446
|
+
if ('server' in slice && slice.server?.specs != null && Array.isArray(slice.server.specs)) {
|
|
447
|
+
const steps = slice.server.specs[0].rules[0].examples[0].steps;
|
|
448
|
+
expect(steps[0].id).toMatch(AUTO_ID_REGEX);
|
|
449
|
+
expect(steps[1].id).toMatch(AUTO_ID_REGEX);
|
|
450
|
+
expect(steps[2].id).toMatch(AUTO_ID_REGEX);
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
it('should assign IDs to client it specs', () => {
|
|
454
|
+
const modelWithClientSpecs = {
|
|
455
|
+
variant: 'specs',
|
|
456
|
+
narratives: [
|
|
457
|
+
{
|
|
458
|
+
name: 'Test Flow',
|
|
459
|
+
slices: [
|
|
460
|
+
{
|
|
461
|
+
type: 'experience',
|
|
462
|
+
name: 'Test Experience',
|
|
463
|
+
client: {
|
|
464
|
+
specs: [
|
|
465
|
+
{ type: 'it', title: 'first test' },
|
|
466
|
+
{ type: 'it', id: 'EXISTING-IT-001', title: 'second test with id' },
|
|
467
|
+
],
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
},
|
|
472
|
+
],
|
|
473
|
+
messages: [],
|
|
474
|
+
integrations: [],
|
|
475
|
+
};
|
|
476
|
+
const result = addAutoIds(modelWithClientSpecs);
|
|
477
|
+
const slice = result.narratives[0].slices[0];
|
|
478
|
+
if ('client' in slice && slice.client?.specs != null) {
|
|
479
|
+
expect(slice.client.specs[0].id).toMatch(AUTO_ID_REGEX);
|
|
480
|
+
expect(slice.client.specs[1].id).toBe('EXISTING-IT-001');
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
it('should assign IDs to client describe specs', () => {
|
|
484
|
+
const modelWithDescribe = {
|
|
485
|
+
variant: 'specs',
|
|
486
|
+
narratives: [
|
|
487
|
+
{
|
|
488
|
+
name: 'Test Flow',
|
|
489
|
+
slices: [
|
|
490
|
+
{
|
|
491
|
+
type: 'experience',
|
|
492
|
+
name: 'Test Experience',
|
|
493
|
+
client: {
|
|
494
|
+
specs: [
|
|
495
|
+
{
|
|
496
|
+
type: 'describe',
|
|
497
|
+
title: 'describe without id',
|
|
498
|
+
children: [{ type: 'it', title: 'nested it' }],
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
type: 'describe',
|
|
502
|
+
id: 'EXISTING-DESC-001',
|
|
503
|
+
title: 'describe with id',
|
|
504
|
+
children: [],
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
],
|
|
510
|
+
},
|
|
511
|
+
],
|
|
512
|
+
messages: [],
|
|
513
|
+
integrations: [],
|
|
514
|
+
};
|
|
515
|
+
const result = addAutoIds(modelWithDescribe);
|
|
516
|
+
const slice = result.narratives[0].slices[0];
|
|
517
|
+
if ('client' in slice && slice.client?.specs != null) {
|
|
518
|
+
expect(slice.client.specs[0].id).toMatch(AUTO_ID_REGEX);
|
|
519
|
+
expect(slice.client.specs[1].id).toBe('EXISTING-DESC-001');
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
it('should assign IDs to nested client specs', () => {
|
|
523
|
+
const modelWithNestedSpecs = {
|
|
524
|
+
variant: 'specs',
|
|
525
|
+
narratives: [
|
|
526
|
+
{
|
|
527
|
+
name: 'Test Flow',
|
|
528
|
+
slices: [
|
|
529
|
+
{
|
|
530
|
+
type: 'experience',
|
|
531
|
+
name: 'Test Experience',
|
|
532
|
+
client: {
|
|
533
|
+
specs: [
|
|
534
|
+
{
|
|
535
|
+
type: 'describe',
|
|
536
|
+
title: 'outer describe',
|
|
537
|
+
children: [
|
|
538
|
+
{ type: 'it', title: 'outer it' },
|
|
539
|
+
{
|
|
540
|
+
type: 'describe',
|
|
541
|
+
title: 'inner describe',
|
|
542
|
+
children: [
|
|
543
|
+
{ type: 'it', title: 'inner it 1' },
|
|
544
|
+
{ type: 'it', title: 'inner it 2' },
|
|
545
|
+
],
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
},
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
},
|
|
554
|
+
],
|
|
555
|
+
messages: [],
|
|
556
|
+
integrations: [],
|
|
557
|
+
};
|
|
558
|
+
const result = addAutoIds(modelWithNestedSpecs);
|
|
559
|
+
const slice = result.narratives[0].slices[0];
|
|
560
|
+
if ('client' in slice && slice.client?.specs != null) {
|
|
561
|
+
const outerDescribe = slice.client.specs[0];
|
|
562
|
+
expect(outerDescribe.id).toMatch(AUTO_ID_REGEX);
|
|
563
|
+
if (outerDescribe.type === 'describe' && outerDescribe.children) {
|
|
564
|
+
expect(outerDescribe.children[0].id).toMatch(AUTO_ID_REGEX);
|
|
565
|
+
const innerDescribe = outerDescribe.children[1];
|
|
566
|
+
expect(innerDescribe.id).toMatch(AUTO_ID_REGEX);
|
|
567
|
+
if (innerDescribe.type === 'describe' && innerDescribe.children) {
|
|
568
|
+
expect(innerDescribe.children[0].id).toMatch(AUTO_ID_REGEX);
|
|
569
|
+
expect(innerDescribe.children[1].id).toMatch(AUTO_ID_REGEX);
|
|
570
|
+
expect(innerDescribe.children[0].id).not.toBe(innerDescribe.children[1].id);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
it('should not mutate original client specs', () => {
|
|
576
|
+
const modelWithClientSpecs = {
|
|
577
|
+
variant: 'specs',
|
|
578
|
+
narratives: [
|
|
579
|
+
{
|
|
580
|
+
name: 'Test Flow',
|
|
581
|
+
slices: [
|
|
582
|
+
{
|
|
583
|
+
type: 'experience',
|
|
584
|
+
name: 'Test Experience',
|
|
585
|
+
client: {
|
|
586
|
+
specs: [{ type: 'it', title: 'test' }],
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
],
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
messages: [],
|
|
593
|
+
integrations: [],
|
|
594
|
+
};
|
|
595
|
+
const originalSpec = modelWithClientSpecs.narratives[0].slices[0];
|
|
596
|
+
addAutoIds(modelWithClientSpecs);
|
|
597
|
+
if ('client' in originalSpec && originalSpec.client?.specs != null) {
|
|
598
|
+
expect(originalSpec.client.specs[0].id).toBeUndefined();
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
//# sourceMappingURL=addAutoIds.specs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addAutoIds.specs.js","sourceRoot":"","sources":["../../../src/id/addAutoIds.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,MAAM,KAAK,GAAU;QACnB,OAAO,EAAE,OAAO;QAChB,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,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