@nice2dev/testing 1.0.27 → 1.1.5

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/dist/index.d.ts CHANGED
@@ -48,7 +48,11 @@ export declare const arbitraries: {
48
48
  nonEmptyArray: <T>(arb: fc.Arbitrary<T>) => fc.Arbitrary<T[]>;
49
49
  /** Unique array (no duplicates) */
50
50
  uniqueArray: <T>(arb: fc.Arbitrary<T>) => fc.Arbitrary<T[]>;
51
- /** Valid CSS color hex (#RGB or #RRGGBB) */
51
+ /**
52
+ * Valid CSS color hex (#RGB or #RRGGBB).
53
+ *
54
+ * fast-check 4 removed the `hexaString` arbitrary in favour of `string({ unit })`.
55
+ */
52
56
  hexColor: () => fc.Arbitrary<string>;
53
57
  /** RGB color */
54
58
  rgbColor: () => fc.Arbitrary<{
@@ -78,17 +82,17 @@ export declare const arbitraries: {
78
82
  /** Grid columns (1-12) */
79
83
  gridColumns: () => fc.Arbitrary<number>;
80
84
  /** Flex direction */
81
- flexDirection: () => fc.Arbitrary<string>;
85
+ flexDirection: () => fc.Arbitrary<"row" | "column" | "row-reverse" | "column-reverse">;
82
86
  /** Flex justify content */
83
- justifyContent: () => fc.Arbitrary<string>;
87
+ justifyContent: () => fc.Arbitrary<"flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly">;
84
88
  /** Flex align items */
85
- alignItems: () => fc.Arbitrary<string>;
89
+ alignItems: () => fc.Arbitrary<"flex-start" | "flex-end" | "center" | "stretch" | "baseline">;
86
90
  /** Valid HTML element tag */
87
- htmlTag: () => fc.Arbitrary<string>;
91
+ htmlTag: () => fc.Arbitrary<"div" | "span" | "button" | "a" | "input" | "label" | "p" | "h1" | "h2" | "h3" | "section" | "article" | "main" | "nav" | "footer" | "header">;
88
92
  /** Valid ARIA role */
89
- ariaRole: () => fc.Arbitrary<string>;
93
+ ariaRole: () => fc.Arbitrary<"link" | "button" | "checkbox" | "dialog" | "gridcell" | "menuitem" | "option" | "progressbar" | "radio" | "slider" | "spinbutton" | "tab" | "tabpanel" | "textbox" | "listbox">;
90
94
  /** Event handler name */
91
- eventHandler: () => fc.Arbitrary<string>;
95
+ eventHandler: () => fc.Arbitrary<"onClick" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onChange" | "onSubmit">;
92
96
  /** Email address */
93
97
  email: () => fc.Arbitrary<string>;
94
98
  /** UUID */
@@ -113,7 +117,8 @@ export declare const arbitraries: {
113
117
  /** Table row */
114
118
  tableRow: <T extends Record<string, fc.Arbitrary<unknown>>>(schema: T) => fc.Arbitrary<{
115
119
  [x: string]: unknown;
116
- id: string;
120
+ [x: number]: unknown;
121
+ id?: string | undefined;
117
122
  }>;
118
123
  /** Table data */
119
124
  tableData: <T extends Record<string, unknown>>(rowArb: fc.Arbitrary<T>, size?: {
@@ -123,7 +128,7 @@ export declare const arbitraries: {
123
128
  /** Animation duration (ms) */
124
129
  duration: () => fc.Arbitrary<number>;
125
130
  /** Animation easing */
126
- easing: () => fc.Arbitrary<string>;
131
+ easing: () => fc.Arbitrary<"linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "cubic-bezier(0.4, 0, 0.2, 1)">;
127
132
  /** Animation delay (ms) */
128
133
  delay: () => fc.Arbitrary<number>;
129
134
  };