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