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