2
2
3
3
exports [` bundle > should throw on additional property in bundle 1` ] = `
4
4
"Validation of Edge Functions manifest failed
5
- [31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
5
+ ADDTIONAL PROPERTY must NOT have additional properties
6
6
7
7
4 | \\ "asset\\ ": \\ "f35baff44129a8f6be7db68590b2efd86ed4ba29000e2edbcaddc5d620d7d043.js\\ ",
8
8
5 | \\ "format\\ ": \\ "js\\ ",
9
9
> 6 | \\ "foo\\ ": \\ "bar\\ "
10
- | ^^^^^ 😲 [95mfoo[39m is not expected to be here!
10
+ | ^^^^^ 😲 foo is not expected to be here!
11
11
7 | }
12
12
8 | ],
13
13
9 | \\ "routes\\ ": ["
14
14
` ;
15
15
16
16
exports [` bundle > should throw on invalid format 1` ] = `
17
17
"Validation of Edge Functions manifest failed
18
- [31m[1mENUM[22m[39m[31m must be equal to one of the allowed values[39m
19
- [31m (eszip2, js)[39m
18
+ ENUM must be equal to one of the allowed values
19
+ (eszip2, js)
20
20
21
21
3 | {
22
22
4 | \\" asset\\ " : \\" f35baff44129a8f6be7db68590b2efd86ed4ba29000e2edbcaddc5d620d7d043.js\\ " ,
@@ -29,148 +29,148 @@ exports[`bundle > should throw on invalid format 1`] = `
29
29
30
30
exports [` bundle > should throw on missing asset 1` ] = `
31
31
"Validation of Edge Functions manifest failed
32
- [31m[1mREQUIRED[22m[39m[31m must have required property 'asset'[39m
32
+ REQUIRED must have required property 'asset'
33
33
34
34
1 | {
35
35
2 | \\" bundles\\ " : [
36
36
> 3 | {
37
- | ^ ☹️ [95masset[39m is missing here!
37
+ | ^ ☹️ asset is missing here!
38
38
4 | \\" format\\ " : \\" js\\ "
39
39
5 | }
40
40
6 | ],"
41
41
`;
42
42
43
43
exports [` bundle > should throw on missing format 1` ] = `
44
44
"Validation of Edge Functions manifest failed
45
- [31m[1mREQUIRED[22m[39m[31m must have required property 'format'[39m
45
+ REQUIRED must have required property 'format'
46
46
47
47
1 | {
48
48
2 | \\" bundles\\ " : [
49
49
> 3 | {
50
- | ^ ☹️ [95mformat[39m is missing here!
50
+ | ^ ☹️ format is missing here!
51
51
4 | \\" asset\\ " : \\" f35baff44129a8f6be7db68590b2efd86ed4ba29000e2edbcaddc5d620d7d043.js\\ "
52
52
5 | }
53
53
6 | ],"
54
54
`;
55
55
56
56
exports [` layers > should throw on additional property 1` ] = `
57
57
"Validation of Edge Functions manifest failed
58
- [31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
58
+ ADDTIONAL PROPERTY must NOT have additional properties
59
59
60
60
25 | \\ "name\\ ": \\ "name\\ ",
61
61
26 | \\ "local\\ ": \\ "local\\ ",
62
62
> 27 | \\ "foo\\ ": \\ "bar\\ "
63
- | ^^^^^ 😲 [95mfoo[39m is not expected to be here!
63
+ | ^^^^^ 😲 foo is not expected to be here!
64
64
28 | }
65
65
29 | ],
66
66
30 | \\ "bundler_version\\ ": \\ "1.6.0\\ ""
67
67
` ;
68
68
69
69
exports [` layers > should throw on missing flag 1` ] = `
70
70
"Validation of Edge Functions manifest failed
71
- [31m[1mREQUIRED[22m[39m[31m must have required property 'flag'[39m
71
+ REQUIRED must have required property 'flag'
72
72
73
73
21 | ],
74
74
22 | \\ "layers\\ ": [
75
75
> 23 | {
76
- | ^ ☹️ [95 mflag [39 m is missing here !
76
+ | ^ ☹️ flag is missing here !
77
77
24 | \\" name\\ " : \\" name\\ " ,
78
78
25 | \\" local\\ " : \\" local\\ "
79
79
26 | } "
80
80
` ;
81
81
82
82
exports [` layers > should throw on missing name 1` ] = `
83
83
"Validation of Edge Functions manifest failed
84
- [31m[1mREQUIRED[22m[39m[31m must have required property 'name'[39m
84
+ REQUIRED must have required property 'name'
85
85
86
86
21 | ],
87
87
22 | \\ "layers\\ ": [
88
88
> 23 | {
89
- | ^ ☹️ [95 mname [39 m is missing here !
89
+ | ^ ☹️ name is missing here !
90
90
24 | \\" flag\\ " : \\" flag\\ " ,
91
91
25 | \\" local\\ " : \\" local\\ "
92
92
26 | } "
93
93
` ;
94
94
95
95
exports [` route > should throw on additional property 1` ] = `
96
96
"Validation of Edge Functions manifest failed
97
- [31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
97
+ ADDTIONAL PROPERTY must NOT have additional properties
98
98
99
99
11 | \\ "function\\ ": \\ "hello\\ ",
100
100
12 | \\ "pattern\\ ": \\ "^/hello/?$\\ ",
101
101
> 13 | \\ "foo\\ ": \\ "bar\\ "
102
- | ^^^^^ 😲 [95mfoo[39m is not expected to be here!
102
+ | ^^^^^ 😲 foo is not expected to be here!
103
103
14 | }
104
104
15 | ],
105
105
16 | \\ "post_cache_routes\\ ": ["
106
106
` ;
107
107
108
108
exports [` route > should throw on invalid pattern 1` ] = `
109
109
"Validation of Edge Functions manifest failed
110
- [31m[1mFORMAT[22m[39m[31m pattern needs to be a regex that starts with ^ and ends with $ without any additional slashes before and afterwards[39m
110
+ FORMAT pattern needs to be a regex that starts with ^ and ends with $ without any additional slashes before and afterwards
111
111
112
112
10 | \\ "name\\ ": \\ "name\\ ",
113
113
11 | \\ "function\\ ": \\ "hello\\ ",
114
114
> 12 | \\ "pattern\\ ": \\ "/^/hello/?$/\\ "
115
- | ^^^^^^^^^^^^^^ 👈🏽 [95mformat[39m pattern needs to be a regex that starts with ^ and ends with $ without any additional slashes before and afterwards
115
+ | ^^^^^^^^^^^^^^ 👈🏽 format pattern needs to be a regex that starts with ^ and ends with $ without any additional slashes before and afterwards
116
116
13 | }
117
117
14 | ],
118
118
15 | \\ "post_cache_routes\\ ": ["
119
119
` ;
120
120
121
121
exports [` route > should throw on missing function 1` ] = `
122
122
"Validation of Edge Functions manifest failed
123
- [31m[1mREQUIRED[22m[39m[31m must have required property 'function'[39m
123
+ REQUIRED must have required property 'function'
124
124
125
125
7 | ],
126
126
8 | \\ "routes\\ ": [
127
127
> 9 | {
128
- | ^ ☹️ [95 mfunction [39 m is missing here !
128
+ | ^ ☹️ function is missing here!
129
129
10 | \\"name\\": \\"name\\",
130
130
11 | \\"pattern\\": \\"^/hello/?$\\"
131
131
12 | } "
132
132
` ;
133
133
134
134
exports [` route > should throw on missing pattern 1` ] = `
135
135
"Validation of Edge Functions manifest failed
136
- [31m[1mREQUIRED[22m[39m[31m must have required property 'pattern'[39m
136
+ REQUIRED must have required property 'pattern'
137
137
138
138
7 | ],
139
139
8 | \\ "routes\\ ": [
140
140
> 9 | {
141
- | ^ ☹️ [95 mpattern [39 m is missing here !
141
+ | ^ ☹️ pattern is missing here !
142
142
10 | \\" name\\ " : \\" name\\ " ,
143
143
11 | \\" function\\ " : \\" hello\\ "
144
144
12 | } "
145
145
` ;
146
146
147
147
exports [` should show multiple errors 1` ] = `
148
148
"Validation of Edge Functions manifest failed
149
- [31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
149
+ ADDTIONAL PROPERTY must NOT have additional properties
150
150
151
151
28 | ],
152
152
29 | \\ "bundler_version\\ ": \\ "1.6.0\\ ",
153
153
> 30 | \\ "foo\\ ": \\ "bar\\ ",
154
- | ^^^^^ 😲 [95mfoo[39m is not expected to be here!
154
+ | ^^^^^ 😲 foo is not expected to be here!
155
155
31 | \\ "baz\\ ": \\ "bar\\ "
156
156
32 | }
157
157
158
- [31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
158
+ ADDTIONAL PROPERTY must NOT have additional properties
159
159
160
160
29 | \\ "bundler_version\\ ": \\ "1.6.0\\ ",
161
161
30 | \\ "foo\\ ": \\ "bar\\ ",
162
162
> 31 | \\ "baz\\ ": \\ "bar\\ "
163
- | ^^^^^ 😲 [95mbaz[39m is not expected to be here!
163
+ | ^^^^^ 😲 baz is not expected to be here!
164
164
32 | }"
165
165
` ;
166
166
167
167
exports [` should throw on additional property on root level 1` ] = `
168
168
"Validation of Edge Functions manifest failed
169
- [31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
169
+ ADDTIONAL PROPERTY must NOT have additional properties
170
170
171
171
28 | ],
172
172
29 | \\ "bundler_version\\ ": \\ "1.6.0\\ ",
173
173
> 30 | \\ "foo\\ ": \\ "bar\\ "
174
- | ^^^^^ 😲 [95mfoo[39m is not expected to be here!
174
+ | ^^^^^ 😲 foo is not expected to be here!
175
175
31 | }"
176
176
` ;
0 commit comments