|
1 |
| -// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 1 | +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
2 | 2 |
|
3 |
| -exports[`validation should fail for defaultIgnoresNotBoolean 1`] = ` |
4 |
| -"Commitlint configuration in defaultIgnoresNotBoolean.js is invalid: |
| 3 | +exports[`validation should fail for > defaultIgnoresNotBoolean 1`] = ` |
| 4 | +[Error: Commitlint configuration in defaultIgnoresNotBoolean.js is invalid: |
5 | 5 | - Property "defaultIgnores" has the wrong type - must be boolean.
|
6 |
| -" |
| 6 | +] |
7 | 7 | `;
|
8 | 8 |
|
9 |
| -exports[`validation should fail for extendsAsObject 1`] = ` |
10 |
| -"Commitlint configuration in extendsAsObject.js is invalid: |
| 9 | +exports[`validation should fail for > extendsAsObject 1`] = ` |
| 10 | +[Error: Commitlint configuration in extendsAsObject.js is invalid: |
11 | 11 | - Property "extends" has the wrong type - must be array.
|
12 | 12 | - Property "extends" has the wrong type - must be string.
|
13 | 13 | - "/extends" must match exactly one schema in oneOf. Value: {"test":1}.
|
14 |
| -" |
| 14 | +] |
15 | 15 | `;
|
16 | 16 |
|
17 |
| -exports[`validation should fail for extendsWithFunction 1`] = ` |
18 |
| -"Commitlint configuration in extendsWithFunction.js is invalid: |
| 17 | +exports[`validation should fail for > extendsWithFunction 1`] = ` |
| 18 | +[Error: Commitlint configuration in extendsWithFunction.js is invalid: |
19 | 19 | - Property "extends/0" has the wrong type - must be string.
|
20 | 20 | - Property "extends" has the wrong type - must be string.
|
21 | 21 | - "/extends" must match exactly one schema in oneOf. Value: [null].
|
22 |
| -" |
| 22 | +] |
23 | 23 | `;
|
24 | 24 |
|
25 |
| -exports[`validation should fail for formatterAsObject 1`] = ` |
26 |
| -"Commitlint configuration in formatterAsObject.js is invalid: |
| 25 | +exports[`validation should fail for > formatterAsObject 1`] = ` |
| 26 | +[Error: Commitlint configuration in formatterAsObject.js is invalid: |
27 | 27 | - Property "formatter" has the wrong type - must be string.
|
28 |
| -" |
| 28 | +] |
29 | 29 | `;
|
30 | 30 |
|
31 |
| -exports[`validation should fail for helpUrlAsArray 1`] = ` |
32 |
| -"Commitlint configuration in helpUrlAsArray.js is invalid: |
| 31 | +exports[`validation should fail for > helpUrlAsArray 1`] = ` |
| 32 | +[Error: Commitlint configuration in helpUrlAsArray.js is invalid: |
33 | 33 | - Property "helpUrl" has the wrong type - must be string.
|
34 |
| -" |
| 34 | +] |
35 | 35 | `;
|
36 | 36 |
|
37 |
| -exports[`validation should fail for helpUrlNotString 1`] = ` |
38 |
| -"Commitlint configuration in helpUrlNotString.js is invalid: |
| 37 | +exports[`validation should fail for > helpUrlNotString 1`] = ` |
| 38 | +[Error: Commitlint configuration in helpUrlNotString.js is invalid: |
39 | 39 | - Property "helpUrl" has the wrong type - must be string.
|
40 |
| -" |
| 40 | +] |
41 | 41 | `;
|
42 | 42 |
|
43 |
| -exports[`validation should fail for ignoresFunction 1`] = ` |
44 |
| -"Commitlint configuration in ignoresFunction.js is invalid: |
| 43 | +exports[`validation should fail for > ignoresFunction 1`] = ` |
| 44 | +[Error: Commitlint configuration in ignoresFunction.js is invalid: |
45 | 45 | - Property "ignores" has the wrong type - must be array.
|
46 |
| -" |
| 46 | +] |
47 | 47 | `;
|
48 | 48 |
|
49 |
| -exports[`validation should fail for ignoresNotFunction 1`] = ` |
50 |
| -"Commitlint configuration in ignoresNotFunction.js is invalid: |
| 49 | +exports[`validation should fail for > ignoresNotFunction 1`] = ` |
| 50 | +[Error: Commitlint configuration in ignoresNotFunction.js is invalid: |
51 | 51 | - "/ignores/0" should be a function. Value: 1.
|
52 |
| -" |
| 52 | +] |
53 | 53 | `;
|
54 | 54 |
|
55 |
| -exports[`validation should fail for parserPreset 1`] = ` |
56 |
| -"Commitlint configuration in parserPreset.js is invalid: |
| 55 | +exports[`validation should fail for > parserPreset 1`] = ` |
| 56 | +[Error: Commitlint configuration in parserPreset.js is invalid: |
57 | 57 | - Property "parserPreset" has the wrong type - must be string.
|
58 | 58 | - Property "parserPreset" has the wrong type - must be object.
|
59 | 59 | - "/parserPreset" should be a function. Value: [].
|
60 | 60 | - "/parserPreset" must match exactly one schema in oneOf. Value: [].
|
61 |
| -" |
| 61 | +] |
62 | 62 | `;
|
63 | 63 |
|
64 |
| -exports[`validation should fail for pluginsNotArray 1`] = ` |
65 |
| -"Commitlint configuration in pluginsNotArray.js is invalid: |
| 64 | +exports[`validation should fail for > pluginsNotArray 1`] = ` |
| 65 | +[Error: Commitlint configuration in pluginsNotArray.js is invalid: |
66 | 66 | - Property "plugins" has the wrong type - must be array.
|
67 |
| -" |
| 67 | +] |
68 | 68 | `;
|
69 | 69 |
|
70 |
| -exports[`validation should fail for rules1 1`] = ` |
71 |
| -"Commitlint configuration in rules1.js is invalid: |
| 70 | +exports[`validation should fail for > rules1 1`] = ` |
| 71 | +[Error: Commitlint configuration in rules1.js is invalid: |
72 | 72 | - "/rules/a/0" must be equal to one of the allowed values. Value: 3.
|
73 | 73 | - "/rules/a" should be a function. Value: [3].
|
74 | 74 | - "/rules/a" must match exactly one schema in oneOf. Value: [3].
|
75 |
| -" |
| 75 | +] |
76 | 76 | `;
|
77 | 77 |
|
78 |
| -exports[`validation should fail for rules2 1`] = ` |
79 |
| -"Commitlint configuration in rules2.js is invalid: |
| 78 | +exports[`validation should fail for > rules2 1`] = ` |
| 79 | +[Error: Commitlint configuration in rules2.js is invalid: |
80 | 80 | - "/rules/b" must NOT have more than 3 items. Value: [1,"test",2,2].
|
81 | 81 | - "/rules/b" should be a function. Value: [1,"test",2,2].
|
82 | 82 | - "/rules/b" must match exactly one schema in oneOf. Value: [1,"test",2,2].
|
83 |
| -" |
| 83 | +] |
84 | 84 | `;
|
85 | 85 |
|
86 |
| -exports[`validation should fail for rules3 1`] = ` |
87 |
| -"Commitlint configuration in rules3.js is invalid: |
| 86 | +exports[`validation should fail for > rules3 1`] = ` |
| 87 | +[Error: Commitlint configuration in rules3.js is invalid: |
88 | 88 | - "/rules/c" must NOT have fewer than 1 items. Value: [].
|
89 | 89 | - "/rules/c" should be a function. Value: [].
|
90 | 90 | - "/rules/c" must match exactly one schema in oneOf. Value: [].
|
91 |
| -" |
| 91 | +] |
92 | 92 | `;
|
93 | 93 |
|
94 |
| -exports[`validation should fail for rules4 1`] = ` |
95 |
| -"Commitlint configuration in rules4.js is invalid: |
| 94 | +exports[`validation should fail for > rules4 1`] = ` |
| 95 | +[Error: Commitlint configuration in rules4.js is invalid: |
96 | 96 | - Property "rules/d/0" has the wrong type - must be number.
|
97 | 97 | - "/rules/d/0" must be equal to one of the allowed values. Value: [].
|
98 | 98 | - "/rules/d" should be a function. Value: [[],[],[]].
|
99 | 99 | - "/rules/d" must match exactly one schema in oneOf. Value: [[],[],[]].
|
100 |
| -" |
| 100 | +] |
101 | 101 | `;
|
102 | 102 |
|
103 |
| -exports[`validation should fail for rules5 1`] = ` |
104 |
| -"Commitlint configuration in rules5.js is invalid: |
| 103 | +exports[`validation should fail for > rules5 1`] = ` |
| 104 | +[Error: Commitlint configuration in rules5.js is invalid: |
105 | 105 | - Property "rules/e" has the wrong type - must be array.
|
106 | 106 | - "/rules/e" should be a function. Value: {}.
|
107 | 107 | - "/rules/e" must match exactly one schema in oneOf. Value: {}.
|
108 |
| -" |
| 108 | +] |
109 | 109 | `;
|
110 | 110 |
|
111 |
| -exports[`validation should fail for rulesAsArray 1`] = ` |
112 |
| -"Commitlint configuration in rulesAsArray.js is invalid: |
| 111 | +exports[`validation should fail for > rulesAsArray 1`] = ` |
| 112 | +[Error: Commitlint configuration in rulesAsArray.js is invalid: |
113 | 113 | - Property "rules" has the wrong type - must be object.
|
114 |
| -" |
| 114 | +] |
115 | 115 | `;
|
116 | 116 |
|
117 |
| -exports[`validation should fail for whenConfigIsNotObject 1`] = ` |
118 |
| -"Commitlint configuration in whenConfigIsNotObject.js is invalid: |
| 117 | +exports[`validation should fail for > whenConfigIsNotObject 1`] = ` |
| 118 | +[Error: Commitlint configuration in whenConfigIsNotObject.js is invalid: |
119 | 119 | - Config has the wrong type - must be object.
|
120 |
| -" |
| 120 | +] |
121 | 121 | `;
|
122 | 122 |
|
123 |
| -exports[`validation should fail for whenConfigIsNotObject2 1`] = ` |
124 |
| -"Commitlint configuration in whenConfigIsNotObject2.js is invalid: |
| 123 | +exports[`validation should fail for > whenConfigIsNotObject2 1`] = ` |
| 124 | +[Error: Commitlint configuration in whenConfigIsNotObject2.js is invalid: |
125 | 125 | - Config has the wrong type - must be object.
|
126 |
| -" |
| 126 | +] |
127 | 127 | `;
|
128 | 128 |
|
129 |
| -exports[`validation should fail for withPluginsAsObject 1`] = ` |
130 |
| -"Commitlint configuration in withPluginsAsObject.js is invalid: |
| 129 | +exports[`validation should fail for > withPluginsAsObject 1`] = ` |
| 130 | +[Error: Commitlint configuration in withPluginsAsObject.js is invalid: |
131 | 131 | - Property "plugins/0" has the wrong type - must be string.
|
132 | 132 | - "/plugins/0" must have required property 'rules'. Value: {}.
|
133 | 133 | - "/plugins/0" must match a schema in anyOf. Value: {}.
|
134 |
| -" |
| 134 | +] |
135 | 135 | `;
|
0 commit comments