Skip to content

Commit 5f92db8

Browse files
committed
chore(deps): update jest monorepo to v29
Signed-off-by: Renovate Bot <[email protected]>
1 parent 897ca50 commit 5f92db8

File tree

11 files changed

+1192
-1353
lines changed

11 files changed

+1192
-1353
lines changed

package-lock.json

Lines changed: 737 additions & 898 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@
7676
"git-format-staged": "3.0.0",
7777
"husky": "8.0.1",
7878
"is-ci": "3.0.1",
79-
"jest": "28.1.3",
79+
"jest": "29.0.3",
8080
"jest-fixtures": "0.6.0",
81+
"jest-serializer-ansi-escapes": "^2.0.1",
8182
"jsonpointer": "5.0.1",
8283
"leven": "3.1.0",
8384
"npm-pkg-lint": "1.11.1",
8485
"prettier": "2.7.1",
85-
"pretty-format": "28.1.3",
8686
"svg-term-cli": "2.1.1",
8787
"tsd": "0.23.0"
8888
},
@@ -105,7 +105,7 @@
105105
"lcov"
106106
],
107107
"snapshotSerializers": [
108-
"pretty-format/ConvertAnsi"
108+
"jest-serializer-ansi-escapes"
109109
],
110110
"testMatch": [
111111
"<rootDir>/src/**/__tests__/**/*.js"

src/__tests__/__snapshots__/index.js.snap

Lines changed: 246 additions & 246 deletions
Large diffs are not rendered by default.

src/__tests__/helpers/create-error-instances.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ describe('createErrorInstances', () => {
2424
);
2525

2626
expect(errors).toMatchInlineSnapshot(`
27-
Array [
27+
[
2828
EnumValidationError {
2929
"data": undefined,
3030
"jsonAst": undefined,
3131
"jsonRaw": undefined,
32-
"options": Object {
32+
"options": {
3333
"keyword": "enum",
34-
"params": Object {
35-
"allowedValues": Array [
34+
"params": {
35+
"allowedValues": [
3636
"one",
3737
"two",
3838
"three",

src/__tests__/helpers/filter-redundant-errors.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ describe('filterRedundantErrors', () => {
3131
};
3232
filterRedundantErrors(tree);
3333
expect(tree).toMatchInlineSnapshot(`
34-
Object {
35-
"children": Object {
36-
"a": Object {
37-
"children": Object {},
38-
"errors": Array [
39-
Object {
34+
{
35+
"children": {
36+
"a": {
37+
"children": {},
38+
"errors": [
39+
{
4040
"keyword": "required",
4141
},
4242
],
@@ -73,14 +73,14 @@ describe('filterRedundantErrors', () => {
7373
};
7474
filterRedundantErrors(tree);
7575
expect(tree).toMatchInlineSnapshot(`
76-
Object {
77-
"children": Object {
78-
"a": Object {
79-
"children": Object {
80-
"b": Object {
81-
"children": Object {},
82-
"errors": Array [
83-
Object {
76+
{
77+
"children": {
78+
"a": {
79+
"children": {
80+
"b": {
81+
"children": {},
82+
"errors": [
83+
{
8484
"keyword": "required",
8585
},
8686
],
@@ -122,17 +122,17 @@ describe('filterRedundantErrors', () => {
122122
};
123123
filterRedundantErrors(tree);
124124
expect(tree).toMatchInlineSnapshot(`
125-
Object {
126-
"children": Object {
127-
"a": Object {
128-
"children": Object {
129-
"b": Object {
130-
"children": Object {},
131-
"errors": Array [
132-
Object {
125+
{
126+
"children": {
127+
"a": {
128+
"children": {
129+
"b": {
130+
"children": {},
131+
"errors": [
132+
{
133133
"keyword": "enum",
134134
},
135-
Object {
135+
{
136136
"keyword": "enum",
137137
},
138138
],
@@ -170,12 +170,12 @@ describe('filterRedundantErrors', () => {
170170
};
171171
filterRedundantErrors(tree);
172172
expect(tree).toMatchInlineSnapshot(`
173-
Object {
174-
"children": Object {
175-
"a2": Object {
176-
"children": Object {},
177-
"errors": Array [
178-
Object {
173+
{
174+
"children": {
175+
"a2": {
176+
"children": {},
177+
"errors": [
178+
{
179179
"keyword": "additionalProperty",
180180
},
181181
],
@@ -216,20 +216,20 @@ describe('filterRedundantErrors', () => {
216216
};
217217
filterRedundantErrors(tree);
218218
expect(tree).toMatchInlineSnapshot(`
219-
Object {
220-
"children": Object {
221-
"a1": Object {
222-
"children": Object {
223-
"b1": Object {
224-
"children": Object {},
225-
"errors": Array [
226-
Object {
219+
{
220+
"children": {
221+
"a1": {
222+
"children": {
223+
"b1": {
224+
"children": {},
225+
"errors": [
226+
{
227227
"keyword": "additionalProperty",
228228
},
229229
],
230230
},
231231
},
232-
"errors": Array [],
232+
"errors": [],
233233
},
234234
},
235235
}
@@ -263,26 +263,26 @@ describe('filterRedundantErrors', () => {
263263

264264
filterRedundantErrors(tree);
265265
expect(tree).toMatchInlineSnapshot(`
266-
Object {
267-
"children": Object {
268-
"/object": Object {
269-
"children": Object {
270-
"/type": Object {
271-
"children": Object {},
272-
"errors": Array [
273-
Object {
266+
{
267+
"children": {
268+
"/object": {
269+
"children": {
270+
"/type": {
271+
"children": {},
272+
"errors": [
273+
{
274274
"keyword": "type",
275275
},
276-
Object {
276+
{
277277
"keyword": "type",
278278
},
279-
Object {
279+
{
280280
"keyword": "anyOf",
281281
},
282282
],
283283
},
284284
},
285-
"errors": Array [],
285+
"errors": [],
286286
},
287287
},
288288
}

src/__tests__/helpers/make-tree.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import { makeTree } from '../../helpers';
33
describe('makeTree', () => {
44
it('works on empty array', async () => {
55
expect(makeTree([])).toMatchInlineSnapshot(`
6-
Object {
7-
"children": Object {},
6+
{
7+
"children": {},
88
}
99
`);
1010
});
1111

1212
it('works on root dataPath', async () => {
1313
expect(makeTree([{ dataPath: '' }])).toMatchInlineSnapshot(`
14-
Object {
15-
"children": Object {
16-
"": Object {
17-
"children": Object {},
18-
"errors": Array [
19-
Object {
14+
{
15+
"children": {
16+
"": {
17+
"children": {},
18+
"errors": [
19+
{
2020
"dataPath": "",
2121
},
2222
],
@@ -28,20 +28,20 @@ describe('makeTree', () => {
2828

2929
it('works on nested dataPath', async () => {
3030
expect(makeTree([{ dataPath: '/root/child' }])).toMatchInlineSnapshot(`
31-
Object {
32-
"children": Object {
33-
"/root": Object {
34-
"children": Object {
35-
"/child": Object {
36-
"children": Object {},
37-
"errors": Array [
38-
Object {
31+
{
32+
"children": {
33+
"/root": {
34+
"children": {
35+
"/child": {
36+
"children": {},
37+
"errors": [
38+
{
3939
"dataPath": "/root/child",
4040
},
4141
],
4242
},
4343
},
44-
"errors": Array [],
44+
"errors": [],
4545
},
4646
},
4747
}
@@ -52,28 +52,28 @@ describe('makeTree', () => {
5252
expect(
5353
makeTree([{ dataPath: '/root/child/0' }, { dataPath: '/root/child/1' }])
5454
).toMatchInlineSnapshot(`
55-
Object {
56-
"children": Object {
57-
"/root": Object {
58-
"children": Object {
59-
"/child/0": Object {
60-
"children": Object {},
61-
"errors": Array [
62-
Object {
55+
{
56+
"children": {
57+
"/root": {
58+
"children": {
59+
"/child/0": {
60+
"children": {},
61+
"errors": [
62+
{
6363
"dataPath": "/root/child/0",
6464
},
6565
],
6666
},
67-
"/child/1": Object {
68-
"children": Object {},
69-
"errors": Array [
70-
Object {
67+
"/child/1": {
68+
"children": {},
69+
"errors": [
70+
{
7171
"dataPath": "/root/child/1",
7272
},
7373
],
7474
},
7575
},
76-
"errors": Array [],
76+
"errors": [],
7777
},
7878
},
7979
}
@@ -87,38 +87,38 @@ describe('makeTree', () => {
8787
{ dataPath: '/root/child/1/grand-child' },
8888
])
8989
).toMatchInlineSnapshot(`
90-
Object {
91-
"children": Object {
92-
"/root": Object {
93-
"children": Object {
94-
"/child/0": Object {
95-
"children": Object {
96-
"/grand-child": Object {
97-
"children": Object {},
98-
"errors": Array [
99-
Object {
90+
{
91+
"children": {
92+
"/root": {
93+
"children": {
94+
"/child/0": {
95+
"children": {
96+
"/grand-child": {
97+
"children": {},
98+
"errors": [
99+
{
100100
"dataPath": "/root/child/0/grand-child",
101101
},
102102
],
103103
},
104104
},
105-
"errors": Array [],
105+
"errors": [],
106106
},
107-
"/child/1": Object {
108-
"children": Object {
109-
"/grand-child": Object {
110-
"children": Object {},
111-
"errors": Array [
112-
Object {
107+
"/child/1": {
108+
"children": {
109+
"/grand-child": {
110+
"children": {},
111+
"errors": [
112+
{
113113
"dataPath": "/root/child/1/grand-child",
114114
},
115115
],
116116
},
117117
},
118-
"errors": Array [],
118+
"errors": [],
119119
},
120120
},
121-
"errors": Array [],
121+
"errors": [],
122122
},
123123
},
124124
}

0 commit comments

Comments
 (0)