Skip to content

Commit 3af625a

Browse files
chore: update jest monorepo to v29 (major) (#3338)
* chore: update jest monorepo to v29 * test: update screenshots after update to jest v29 * chore: adjust jest types version Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: escapedcat <[email protected]>
1 parent 4213e9c commit 3af625a

File tree

4 files changed

+532
-391
lines changed

4 files changed

+532
-391
lines changed

@commitlint/config-validator/src/__snapshots__/validate.test.ts.snap

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,115 +2,115 @@
22

33
exports[`validation should fail for defaultIgnoresNotBoolean 1`] = `
44
"Commitlint configuration in defaultIgnoresNotBoolean.js is invalid:
5-
- Property \\"defaultIgnores\\" has the wrong type - must be boolean.
5+
- Property "defaultIgnores" has the wrong type - must be boolean.
66
"
77
`;
88

99
exports[`validation should fail for extendsAsObject 1`] = `
1010
"Commitlint configuration in extendsAsObject.js is invalid:
11-
- Property \\"extends\\" has the wrong type - must be array.
12-
- Property \\"extends\\" has the wrong type - must be string.
13-
- \\"/extends\\" must match exactly one schema in oneOf. Value: {\\"test\\":1}.
11+
- Property "extends" has the wrong type - must be array.
12+
- Property "extends" has the wrong type - must be string.
13+
- "/extends" must match exactly one schema in oneOf. Value: {"test":1}.
1414
"
1515
`;
1616

1717
exports[`validation should fail for extendsWithFunction 1`] = `
1818
"Commitlint configuration in extendsWithFunction.js is invalid:
19-
- Property \\"extends/0\\" has the wrong type - must be string.
20-
- Property \\"extends\\" has the wrong type - must be string.
21-
- \\"/extends\\" must match exactly one schema in oneOf. Value: [null].
19+
- Property "extends/0" has the wrong type - must be string.
20+
- Property "extends" has the wrong type - must be string.
21+
- "/extends" must match exactly one schema in oneOf. Value: [null].
2222
"
2323
`;
2424

2525
exports[`validation should fail for formatterAsObject 1`] = `
2626
"Commitlint configuration in formatterAsObject.js is invalid:
27-
- Property \\"formatter\\" has the wrong type - must be string.
27+
- Property "formatter" has the wrong type - must be string.
2828
"
2929
`;
3030

3131
exports[`validation should fail for helpUrlAsArray 1`] = `
3232
"Commitlint configuration in helpUrlAsArray.js is invalid:
33-
- Property \\"helpUrl\\" has the wrong type - must be string.
33+
- Property "helpUrl" has the wrong type - must be string.
3434
"
3535
`;
3636

3737
exports[`validation should fail for helpUrlNotString 1`] = `
3838
"Commitlint configuration in helpUrlNotString.js is invalid:
39-
- Property \\"helpUrl\\" has the wrong type - must be string.
39+
- Property "helpUrl" has the wrong type - must be string.
4040
"
4141
`;
4242

4343
exports[`validation should fail for ignoresFunction 1`] = `
4444
"Commitlint configuration in ignoresFunction.js is invalid:
45-
- Property \\"ignores\\" has the wrong type - must be array.
45+
- Property "ignores" has the wrong type - must be array.
4646
"
4747
`;
4848

4949
exports[`validation should fail for ignoresNotFunction 1`] = `
5050
"Commitlint configuration in ignoresNotFunction.js is invalid:
51-
- \\"/ignores/0\\" should be a function. Value: 1.
51+
- "/ignores/0" should be a function. Value: 1.
5252
"
5353
`;
5454

5555
exports[`validation should fail for parserPreset 1`] = `
5656
"Commitlint configuration in parserPreset.js is invalid:
57-
- Property \\"parserPreset\\" has the wrong type - must be string.
58-
- Property \\"parserPreset\\" has the wrong type - must be object.
59-
- \\"/parserPreset\\" should be a function. Value: [].
60-
- \\"/parserPreset\\" must match exactly one schema in oneOf. Value: [].
57+
- Property "parserPreset" has the wrong type - must be string.
58+
- Property "parserPreset" has the wrong type - must be object.
59+
- "/parserPreset" should be a function. Value: [].
60+
- "/parserPreset" must match exactly one schema in oneOf. Value: [].
6161
"
6262
`;
6363

6464
exports[`validation should fail for pluginsNotArray 1`] = `
6565
"Commitlint configuration in pluginsNotArray.js is invalid:
66-
- Property \\"plugins\\" has the wrong type - must be array.
66+
- Property "plugins" has the wrong type - must be array.
6767
"
6868
`;
6969

7070
exports[`validation should fail for rules1 1`] = `
7171
"Commitlint configuration in rules1.js is invalid:
72-
- \\"/rules/a/0\\" must be equal to one of the allowed values. Value: 3.
73-
- \\"/rules/a\\" should be a function. Value: [3].
74-
- \\"/rules/a\\" must match exactly one schema in oneOf. Value: [3].
72+
- "/rules/a/0" must be equal to one of the allowed values. Value: 3.
73+
- "/rules/a" should be a function. Value: [3].
74+
- "/rules/a" must match exactly one schema in oneOf. Value: [3].
7575
"
7676
`;
7777

7878
exports[`validation should fail for rules2 1`] = `
7979
"Commitlint configuration in rules2.js is invalid:
80-
- \\"/rules/b\\" must NOT have more than 3 items. Value: [1,\\"test\\",2,2].
81-
- \\"/rules/b\\" should be a function. Value: [1,\\"test\\",2,2].
82-
- \\"/rules/b\\" must match exactly one schema in oneOf. Value: [1,\\"test\\",2,2].
80+
- "/rules/b" must NOT have more than 3 items. Value: [1,"test",2,2].
81+
- "/rules/b" should be a function. Value: [1,"test",2,2].
82+
- "/rules/b" must match exactly one schema in oneOf. Value: [1,"test",2,2].
8383
"
8484
`;
8585

8686
exports[`validation should fail for rules3 1`] = `
8787
"Commitlint configuration in rules3.js is invalid:
88-
- \\"/rules/c\\" must NOT have fewer than 1 items. Value: [].
89-
- \\"/rules/c\\" should be a function. Value: [].
90-
- \\"/rules/c\\" must match exactly one schema in oneOf. Value: [].
88+
- "/rules/c" must NOT have fewer than 1 items. Value: [].
89+
- "/rules/c" should be a function. Value: [].
90+
- "/rules/c" must match exactly one schema in oneOf. Value: [].
9191
"
9292
`;
9393

9494
exports[`validation should fail for rules4 1`] = `
9595
"Commitlint configuration in rules4.js is invalid:
96-
- Property \\"rules/d/0\\" has the wrong type - must be number.
97-
- \\"/rules/d/0\\" must be equal to one of the allowed values. Value: [].
98-
- \\"/rules/d\\" should be a function. Value: [[],[],[]].
99-
- \\"/rules/d\\" must match exactly one schema in oneOf. Value: [[],[],[]].
96+
- Property "rules/d/0" has the wrong type - must be number.
97+
- "/rules/d/0" must be equal to one of the allowed values. Value: [].
98+
- "/rules/d" should be a function. Value: [[],[],[]].
99+
- "/rules/d" must match exactly one schema in oneOf. Value: [[],[],[]].
100100
"
101101
`;
102102

103103
exports[`validation should fail for rules5 1`] = `
104104
"Commitlint configuration in rules5.js is invalid:
105-
- Property \\"rules/e\\" has the wrong type - must be array.
106-
- \\"/rules/e\\" should be a function. Value: {}.
107-
- \\"/rules/e\\" must match exactly one schema in oneOf. Value: {}.
105+
- Property "rules/e" has the wrong type - must be array.
106+
- "/rules/e" should be a function. Value: {}.
107+
- "/rules/e" must match exactly one schema in oneOf. Value: {}.
108108
"
109109
`;
110110

111111
exports[`validation should fail for rulesAsArray 1`] = `
112112
"Commitlint configuration in rulesAsArray.js is invalid:
113-
- Property \\"rules\\" has the wrong type - must be object.
113+
- Property "rules" has the wrong type - must be object.
114114
"
115115
`;
116116

@@ -128,8 +128,8 @@ exports[`validation should fail for whenConfigIsNotObject2 1`] = `
128128

129129
exports[`validation should fail for withPluginsAsObject 1`] = `
130130
"Commitlint configuration in withPluginsAsObject.js is invalid:
131-
- Property \\"plugins/0\\" has the wrong type - must be string.
132-
- \\"/plugins/0\\" must have required property 'rules'. Value: {}.
133-
- \\"/plugins/0\\" must match a schema in anyOf. Value: {}.
131+
- Property "plugins/0" has the wrong type - must be string.
132+
- "/plugins/0" must have required property 'rules'. Value: {}.
133+
- "/plugins/0" must match a schema in anyOf. Value: {}.
134134
"
135135
`;

@packages/test-environment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"license": "MIT",
3030
"dependencies": {
3131
"@types/tmp": "^0.2.0",
32-
"jest-environment-node": "^28.0.0",
32+
"jest-environment-node": "^29.0.1",
3333
"tmp": "0.2.1"
3434
},
3535
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"eslint-plugin-import": "^2.20.1",
9898
"eslint-plugin-jest": "^26.0.0",
9999
"husky": "^8.0.0",
100-
"jest": "^28.1.2",
100+
"jest": "^29.0.1",
101101
"lerna": "^5.0.0",
102102
"lint-staged": "13.0.3",
103103
"prettier": "^2.0.5",

0 commit comments

Comments
 (0)