@nestia/e2e 7.4.0 → 8.0.0-dev.20250829

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.
@@ -23,20 +23,17 @@ exports.RandomGenerator = void 0;
23
23
  * const testUser = {
24
24
  * id: RandomGenerator.alphaNumeric(8),
25
25
  * name: RandomGenerator.name(),
26
- * bio: RandomGenerator.paragraph(3)(5, 10),
26
+ * bio: RandomGenerator.paragraph({ sentences: 3, wordMin: 5, wordMax: 10 }),
27
27
  * phone: RandomGenerator.mobile(),
28
- * createdAt: RandomGenerator.date(new Date())(1000 * 60 * 60 * 24 * 30) // 30 days
28
+ * createdAt: RandomGenerator.date(new Date(), 1000 * 60 * 60 * 24 * 30) // 30 days
29
29
  * };
30
30
  *
31
31
  * // Sample data for testing
32
- * const testSample = RandomGenerator.sample(allUsers)(5);
32
+ * const testSample = RandomGenerator.sample(allUsers, 5);
33
33
  * ```;
34
34
  */
35
35
  var RandomGenerator;
36
36
  (function (RandomGenerator) {
37
- /* ----------------------------------------------------------------
38
- IDENTIFICATIONS
39
- ---------------------------------------------------------------- */
40
37
  /** Character set containing lowercase alphabetical characters a-z */
41
38
  var CHARACTERS = "abcdefghijklmnopqrstuvwxyz";
42
39
  /**
@@ -55,9 +52,9 @@ var RandomGenerator;
55
52
  *
56
53
  * @example
57
54
  * ```typescript
58
- * RandomGenerator.alphabets(5); // "hello"
59
- * RandomGenerator.alphabets(3); // "abc"
60
- * RandomGenerator.alphabets(10); // "randomtext"
55
+ * RandomGenerator.alphabets(5); // e.g. "kxqpw"
56
+ * RandomGenerator.alphabets(3); // e.g. "mzr"
57
+ * RandomGenerator.alphabets(10); // e.g. "qwertasdfg"
61
58
  *
62
59
  * // Generate random CSS class names
63
60
  * const className = `test-${RandomGenerator.alphabets(6)}`;
@@ -86,8 +83,8 @@ var RandomGenerator;
86
83
  *
87
84
  * @example
88
85
  * ```typescript
89
- * RandomGenerator.alphaNumeric(8); // "a1b2c3d4"
90
- * RandomGenerator.alphaNumeric(12); // "x9y8z7w6v5u4"
86
+ * RandomGenerator.alphaNumeric(8); // e.g. "a1b2c3d4"
87
+ * RandomGenerator.alphaNumeric(12); // e.g. "x9y8z7w6v5u4"
91
88
  *
92
89
  * // Generate random API keys
93
90
  * const apiKey = RandomGenerator.alphaNumeric(32);
@@ -119,9 +116,9 @@ var RandomGenerator;
119
116
  *
120
117
  * @example
121
118
  * ```typescript
122
- * RandomGenerator.name(); // "john doe"
123
- * RandomGenerator.name(1); // "alice"
124
- * RandomGenerator.name(3); // "jane mary smith"
119
+ * RandomGenerator.name(); // e.g. "lorem ipsum" (2-3 words)
120
+ * RandomGenerator.name(1); // e.g. "dolor" (single word)
121
+ * RandomGenerator.name(3); // e.g. "sit amet consectetur" (3 words)
125
122
  *
126
123
  * // Generate test user names
127
124
  * const users = Array.from({ length: 10 }, () => ({
@@ -135,113 +132,133 @@ var RandomGenerator;
135
132
  * ```
136
133
  *
137
134
  * @param length - Number of words in the name (default: random between 2-3)
138
- * @returns A space-separated string resembling a human name
135
+ * @returns A space-separated string of random words (each 3-7 chars by default)
139
136
  */
140
137
  RandomGenerator.name = function (length) {
141
138
  if (length === void 0) { length = randint(2, 3); }
142
- return RandomGenerator.paragraph(length)();
139
+ return RandomGenerator.paragraph({
140
+ sentences: length,
141
+ });
143
142
  };
144
143
  /**
145
144
  * Generates a random paragraph with configurable sentence structure.
146
145
  *
147
146
  * Creates a paragraph consisting of a specified number of "sentences"
148
147
  * (words). Each sentence is a random alphabetic string, and sentences are
149
- * joined with spaces. Returns a currying function to allow configuration of
150
- * word length ranges.
148
+ * joined with spaces. Accepts an optional configuration object for fine-tuned
149
+ * control over the paragraph structure.
151
150
  *
152
151
  * @example
153
152
  * ```typescript
154
- * // Generate with default word lengths (3-7 characters)
155
- * RandomGenerator.paragraph(3)(); // "hello world test"
156
- * RandomGenerator.paragraph(5)(); // "lorem ipsum dolor sit amet"
153
+ * // Generate with defaults (random 2-5 words, 3-7 characters each)
154
+ * RandomGenerator.paragraph(); // e.g. "lorem ipsum dolor"
155
+ *
156
+ * // Specific number of sentences
157
+ * RandomGenerator.paragraph({ sentences: 5 }); // "lorem ipsum dolor sit amet"
157
158
  *
158
159
  * // Custom word length ranges
159
- * RandomGenerator.paragraph(4)(2, 5); // "ab cd ef gh"
160
- * RandomGenerator.paragraph(6)(8, 12); // "verylongword anotherlongword..."
160
+ * RandomGenerator.paragraph({ sentences: 4, wordMin: 2, wordMax: 5 });
161
+ * // "ab cd ef gh"
161
162
  *
162
163
  * // Generate product descriptions
163
- * const description = RandomGenerator.paragraph(8)(4, 8);
164
+ * const description = RandomGenerator.paragraph({
165
+ * sentences: 8,
166
+ * wordMin: 4,
167
+ * wordMax: 8
168
+ * });
164
169
  *
165
170
  * // Create test content for forms
166
- * const placeholder = RandomGenerator.paragraph(3)(5, 10);
167
- *
168
- * // Generate variable-length test data
169
- * const testTexts = Array.from({ length: 5 }, (_, i) =>
170
- * RandomGenerator.paragraph(i + 2)(3, 6)
171
- * );
171
+ * const placeholder = RandomGenerator.paragraph({
172
+ * sentences: 3,
173
+ * wordMin: 5,
174
+ * wordMax: 10
175
+ * });
172
176
  * ```;
173
177
  *
174
- * @param sentences - Number of sentences (words) in the paragraph (default:
175
- * random 2-5)
176
- * @returns A currying function that accepts word length parameters
178
+ * @param props - Optional configuration object with sentences count and word
179
+ * length ranges
180
+ * @returns A string containing the generated paragraph
177
181
  */
178
- RandomGenerator.paragraph = function (sentences) {
179
- if (sentences === void 0) { sentences = randint(2, 5); }
180
- return function (wordMin, wordMax) {
181
- if (wordMin === void 0) { wordMin = 3; }
182
- if (wordMax === void 0) { wordMax = 7; }
183
- return new Array(sentences)
184
- .fill("")
185
- .map(function () { return RandomGenerator.alphabets(randint(wordMin, wordMax)); })
186
- .join(" ");
187
- };
182
+ RandomGenerator.paragraph = function (props) {
183
+ var _a;
184
+ return new Array((_a = props === null || props === void 0 ? void 0 : props.sentences) !== null && _a !== void 0 ? _a : randint(2, 5))
185
+ .fill("")
186
+ .map(function () { var _a, _b; return RandomGenerator.alphabets(randint((_a = props === null || props === void 0 ? void 0 : props.wordMin) !== null && _a !== void 0 ? _a : 3, (_b = props === null || props === void 0 ? void 0 : props.wordMax) !== null && _b !== void 0 ? _b : 7)); })
187
+ .join(" ");
188
188
  };
189
189
  /**
190
190
  * Generates random multi-paragraph content with customizable structure.
191
191
  *
192
192
  * Creates content consisting of multiple paragraphs separated by double
193
- * newlines. Uses a triple-currying pattern to allow fine-grained control over
194
- * content structure: paragraphs count sentences per paragraph word
193
+ * newlines. Accepts an optional configuration object to control content
194
+ * structure including paragraph count, sentences per paragraph, and word
195
195
  * character lengths. Ideal for generating realistic-looking text content for
196
196
  * testing.
197
197
  *
198
198
  * @example
199
199
  * ```typescript
200
200
  * // Generate with all defaults
201
- * const article = RandomGenerator.content()()();
201
+ * const article = RandomGenerator.content();
202
202
  *
203
203
  * // Specific structure: 5 paragraphs, 15-25 sentences each, 4-8 char words
204
- * const longContent = RandomGenerator.content(5)(15, 25)(4, 8);
204
+ * const longContent = RandomGenerator.content({
205
+ * paragraphs: 5,
206
+ * sentenceMin: 15,
207
+ * sentenceMax: 25,
208
+ * wordMin: 4,
209
+ * wordMax: 8
210
+ * });
205
211
  *
206
212
  * // Short content with brief sentences
207
- * const shortContent = RandomGenerator.content(2)(5, 8)(2, 4);
213
+ * const shortContent = RandomGenerator.content({
214
+ * paragraphs: 2,
215
+ * sentenceMin: 5,
216
+ * sentenceMax: 8,
217
+ * wordMin: 2,
218
+ * wordMax: 4
219
+ * });
208
220
  *
209
221
  * // Generate blog post content
210
222
  * const blogPost = {
211
223
  * title: RandomGenerator.name(3),
212
- * content: RandomGenerator.content(4)(10, 20)(3, 7),
213
- * summary: RandomGenerator.paragraph(2)(5, 10)
224
+ * content: RandomGenerator.content({
225
+ * paragraphs: 4,
226
+ * sentenceMin: 10,
227
+ * sentenceMax: 20,
228
+ * wordMin: 3,
229
+ * wordMax: 7
230
+ * }),
231
+ * summary: RandomGenerator.paragraph({ sentences: 2 })
214
232
  * };
215
233
  *
216
234
  * // Create test data for CMS
217
235
  * const pages = Array.from({ length: 10 }, () => ({
218
236
  * id: RandomGenerator.alphaNumeric(8),
219
- * content: RandomGenerator.content(randint(2, 6))(8, 15)(4, 9)
237
+ * content: RandomGenerator.content({
238
+ * paragraphs: randint(2, 6),
239
+ * sentenceMin: 8,
240
+ * sentenceMax: 15
241
+ * })
220
242
  * }));
221
- *
222
- * // Generate email content for testing
223
- * const emailBody = RandomGenerator.content(3)(5, 12)(3, 8);
224
243
  * ```;
225
244
  *
226
- * @param paragraphs - Number of paragraphs to generate (default: random 3-8)
227
- * @returns A currying function that accepts sentence count parameters
245
+ * @param props - Optional configuration object with paragraph, sentence, and
246
+ * word parameters
247
+ * @returns A string containing the generated multi-paragraph content
228
248
  */
229
- RandomGenerator.content = function (paragraphs) {
230
- if (paragraphs === void 0) { paragraphs = randint(3, 8); }
231
- return function (sentenceMin, sentenceMax) {
232
- if (sentenceMin === void 0) { sentenceMin = 10; }
233
- if (sentenceMax === void 0) { sentenceMax = 40; }
234
- return function (wordMin, wordMax) {
235
- if (wordMin === void 0) { wordMin = 1; }
236
- if (wordMax === void 0) { wordMax = 7; }
237
- return new Array(paragraphs)
238
- .fill("")
239
- .map(function () {
240
- return RandomGenerator.paragraph(randint(sentenceMin, sentenceMax))(wordMin, wordMax);
241
- })
242
- .join("\n\n");
243
- };
244
- };
249
+ RandomGenerator.content = function (props) {
250
+ var _a;
251
+ return new Array((_a = props === null || props === void 0 ? void 0 : props.paragraphs) !== null && _a !== void 0 ? _a : randint(3, 8))
252
+ .fill("")
253
+ .map(function () {
254
+ var _a, _b, _c, _d;
255
+ return RandomGenerator.paragraph({
256
+ sentences: randint((_a = props === null || props === void 0 ? void 0 : props.sentenceMin) !== null && _a !== void 0 ? _a : 10, (_b = props === null || props === void 0 ? void 0 : props.sentenceMax) !== null && _b !== void 0 ? _b : 40),
257
+ wordMin: (_c = props === null || props === void 0 ? void 0 : props.wordMin) !== null && _c !== void 0 ? _c : 1,
258
+ wordMax: (_d = props === null || props === void 0 ? void 0 : props.wordMax) !== null && _d !== void 0 ? _d : 7,
259
+ });
260
+ })
261
+ .join("\n\n");
245
262
  };
246
263
  /**
247
264
  * Extracts a random substring from the provided content string.
@@ -255,9 +272,9 @@ var RandomGenerator;
255
272
  * ```typescript
256
273
  * const text = "The quick brown fox jumps over the lazy dog";
257
274
  *
258
- * RandomGenerator.substring(text); // "quick brown fox"
259
- * RandomGenerator.substring(text); // "jumps over"
260
- * RandomGenerator.substring(text); // "fox jumps over the lazy"
275
+ * RandomGenerator.substring(text); // e.g. "quick brown fox"
276
+ * RandomGenerator.substring(text); // e.g. "jumps over"
277
+ * RandomGenerator.substring(text); // e.g. "fox jumps over the lazy"
261
278
  *
262
279
  * // Generate search terms from content
263
280
  * const searchQuery = RandomGenerator.substring(articleContent);
@@ -291,9 +308,9 @@ var RandomGenerator;
291
308
  *
292
309
  * @example
293
310
  * ```typescript
294
- * RandomGenerator.mobile(); // "0103341234"
295
- * RandomGenerator.mobile("011"); // "0119876543"
296
- * RandomGenerator.mobile("+82"); // "+8233412345"
311
+ * RandomGenerator.mobile(); // e.g. "0103341234" or "01012345678"
312
+ * RandomGenerator.mobile("011"); // e.g. "0119876543" or "01112345678"
313
+ * RandomGenerator.mobile("+82"); // e.g. "+823341234" or "+8212345678"
297
314
  *
298
315
  * // Generate test user phone numbers
299
316
  * const testUsers = Array.from({ length: 100 }, () => ({
@@ -329,8 +346,7 @@ var RandomGenerator;
329
346
  /**
330
347
  * Generates a random date within a specified range from a starting point.
331
348
  *
332
- * Creates a currying function that accepts a range in milliseconds and
333
- * returns a random date between the start date and start date + range. The
349
+ * Returns a random date between the start date and start date + range. The
334
350
  * range represents the maximum number of milliseconds to add to the starting
335
351
  * date. Useful for generating timestamps, creation dates, or scheduling test
336
352
  * data.
@@ -342,33 +358,32 @@ var RandomGenerator;
342
358
  * const oneMonth = 30 * oneDay;
343
359
  *
344
360
  * // Random date within the next 30 days
345
- * const futureDate = RandomGenerator.date(now)(oneMonth);
361
+ * const futureDate = RandomGenerator.date(now, oneMonth);
346
362
  *
347
363
  * // Random date within the past week
348
364
  * const pastWeek = new Date(now.getTime() - 7 * oneDay);
349
- * const recentDate = RandomGenerator.date(pastWeek)(7 * oneDay);
365
+ * const recentDate = RandomGenerator.date(pastWeek, 7 * oneDay);
350
366
  *
351
367
  * // Generate random creation dates for test data
352
368
  * const startOfYear = new Date(2024, 0, 1);
353
369
  * const endOfYear = new Date(2024, 11, 31).getTime() - startOfYear.getTime();
354
- * const randomCreationDate = RandomGenerator.date(startOfYear)(endOfYear);
370
+ * const randomCreationDate = RandomGenerator.date(startOfYear, endOfYear);
355
371
  *
356
372
  * // Create test events with random timestamps
357
373
  * const events = Array.from({ length: 50 }, () => ({
358
374
  * id: RandomGenerator.alphaNumeric(8),
359
375
  * title: RandomGenerator.name(2),
360
- * createdAt: RandomGenerator.date(new Date())(oneMonth),
361
- * scheduledFor: RandomGenerator.date(new Date())(oneMonth * 3)
376
+ * createdAt: RandomGenerator.date(new Date(), oneMonth),
377
+ * scheduledFor: RandomGenerator.date(new Date(), oneMonth * 3)
362
378
  * }));
363
379
  * ```;
364
380
  *
365
381
  * @param from - The starting date for the random range
366
- * @returns A currying function that accepts a range in milliseconds
382
+ * @param range - The range in milliseconds from the starting date
383
+ * @returns A random date within the specified range
367
384
  */
368
- RandomGenerator.date = function (from) {
369
- return function (range) {
370
- return new Date(from.getTime() + randint(0, range));
371
- };
385
+ RandomGenerator.date = function (from, range) {
386
+ return new Date(from.getTime() + randint(0, range));
372
387
  };
373
388
  /**
374
389
  * Randomly samples a specified number of unique elements from an array.
@@ -383,37 +398,36 @@ var RandomGenerator;
383
398
  * ```typescript
384
399
  * const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
385
400
  *
386
- * RandomGenerator.sample(numbers)(3); // [2, 7, 9]
387
- * RandomGenerator.sample(numbers)(5); // [1, 4, 6, 8, 10]
388
- * RandomGenerator.sample(numbers)(15); // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (capped at array length)
401
+ * RandomGenerator.sample(numbers, 3); // e.g. [2, 7, 9]
402
+ * RandomGenerator.sample(numbers, 5); // e.g. [1, 4, 6, 8, 10]
403
+ * RandomGenerator.sample(numbers, 15); // returns all 10 elements (capped at array length)
389
404
  *
390
405
  * // Sample users for testing
391
406
  * const allUsers = await getUsersFromDatabase();
392
- * const testUsers = RandomGenerator.sample(allUsers)(10);
407
+ * const testUsers = RandomGenerator.sample(allUsers, 10);
393
408
  *
394
409
  * // Create random product selections
395
- * const featuredProducts = RandomGenerator.sample(allProducts)(5);
410
+ * const featuredProducts = RandomGenerator.sample(allProducts, 5);
396
411
  *
397
412
  * // Generate test data subsets
398
- * const validationSet = RandomGenerator.sample(trainingData)(100);
413
+ * const validationSet = RandomGenerator.sample(trainingData, 100);
399
414
  *
400
415
  * // Random A/B testing groups
401
- * const groupA = RandomGenerator.sample(allParticipants)(50);
416
+ * const groupA = RandomGenerator.sample(allParticipants, 50);
402
417
  * const remaining = allParticipants.filter(p => !groupA.includes(p));
403
- * const groupB = RandomGenerator.sample(remaining)(50);
418
+ * const groupB = RandomGenerator.sample(remaining, 50);
404
419
  * ```;
405
420
  *
406
421
  * @param array - The source array to sample from
407
- * @returns A currying function that accepts the desired sample count
422
+ * @param count - The number of elements to sample
423
+ * @returns An array containing the randomly selected elements
408
424
  */
409
- RandomGenerator.sample = function (array) {
410
- return function (count) {
411
- count = Math.min(count, array.length);
412
- var indexes = new Set();
413
- while (indexes.size < count)
414
- indexes.add(randint(0, array.length - 1));
415
- return Array.from(indexes).map(function (index) { return array[index]; });
416
- };
425
+ RandomGenerator.sample = function (array, count) {
426
+ count = Math.min(count, array.length);
427
+ var indexes = new Set();
428
+ while (indexes.size < count)
429
+ indexes.add(randint(0, array.length - 1));
430
+ return Array.from(indexes).map(function (index) { return array[index]; });
417
431
  };
418
432
  /**
419
433
  * Randomly selects a single element from an array.
@@ -428,8 +442,8 @@ var RandomGenerator;
428
442
  * const colors = ['red', 'blue', 'green', 'yellow', 'purple'];
429
443
  * const fruits = ['apple', 'banana', 'orange', 'grape', 'kiwi'];
430
444
  *
431
- * RandomGenerator.pick(colors); // "blue"
432
- * RandomGenerator.pick(fruits); // "apple"
445
+ * RandomGenerator.pick(colors); // e.g. "blue"
446
+ * RandomGenerator.pick(fruits); // e.g. "apple"
433
447
  *
434
448
  * // Select random configuration options
435
449
  * const randomTheme = RandomGenerator.pick(['light', 'dark', 'auto']);
@@ -456,6 +470,7 @@ var RandomGenerator;
456
470
  */
457
471
  RandomGenerator.pick = function (array) { return array[randint(0, array.length - 1)]; };
458
472
  })(RandomGenerator || (exports.RandomGenerator = RandomGenerator = {}));
473
+ /** @internal */
459
474
  var randint = function (min, max) {
460
475
  return Math.floor(Math.random() * (max - min + 1)) + min;
461
476
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RandomGenerator.js","sourceRoot":"","sources":["../src/RandomGenerator.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,IAAiB,eAAe,CAga/B;AAhaD,WAAiB,eAAe;IAC9B;;yEAEqE;IAErE,qEAAqE;IACrE,IAAM,UAAU,GAAG,4BAA4B,CAAC;IAEhD;;;OAGG;IACH,IAAM,OAAO,GAAW,YAAY,GAAG,UAAU,CAAC;IAElD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACU,yBAAS,GAAG,UAAC,MAAc;QACtC,OAAA,IAAI,KAAK,CAAC,MAAM,CAAC;aACd,IAAI,CAAC,EAAE,CAAC;aACR,GAAG,CAAC,cAAM,OAAA,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAA7C,CAA6C,CAAC;aACxD,IAAI,CAAC,EAAE,CAAC;IAHX,CAGW,CAAC;IAEd;;;;;;;;;;;;;;;;;;;;;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