Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit ab3e319

Browse files
committed
chore: disable color in test
1 parent 121416f commit ab3e319

File tree

3 files changed

+32
-30
lines changed

3 files changed

+32
-30
lines changed

node/validation/manifest/__snapshots__/index.test.ts.snap

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

33
exports[`bundle > should throw on additional property in bundle 1`] = `
44
"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
66
77
4 | \\"asset\\": \\"f35baff44129a8f6be7db68590b2efd86ed4ba29000e2edbcaddc5d620d7d043.js\\",
88
5 | \\"format\\": \\"js\\",
99
> 6 | \\"foo\\": \\"bar\\"
10-
| ^^^^^ 😲 [95mfoo[39m is not expected to be here!
10+
| ^^^^^ 😲 foo is not expected to be here!
1111
7 | }
1212
8 | ],
1313
9 | \\"routes\\": ["
1414
`;
1515

1616
exports[`bundle > should throw on invalid format 1`] = `
1717
"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)
2020
2121
3 | {
2222
4 | \\"asset\\": \\"f35baff44129a8f6be7db68590b2efd86ed4ba29000e2edbcaddc5d620d7d043.js\\",
@@ -29,148 +29,148 @@ exports[`bundle > should throw on invalid format 1`] = `
2929

3030
exports[`bundle > should throw on missing asset 1`] = `
3131
"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'
3333
3434
1 | {
3535
2 | \\"bundles\\": [
3636
> 3 | {
37-
| ^ ☹️ [95masset[39m is missing here!
37+
| ^ ☹️ asset is missing here!
3838
4 | \\"format\\": \\"js\\"
3939
5 | }
4040
6 | ],"
4141
`;
4242
4343
exports[`bundle > should throw on missing format 1`] = `
4444
"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'
4646
4747
1 | {
4848
2 | \\"bundles\\": [
4949
> 3 | {
50-
| ^ ☹️ [95mformat[39m is missing here!
50+
| ^ ☹️ format is missing here!
5151
4 | \\"asset\\": \\"f35baff44129a8f6be7db68590b2efd86ed4ba29000e2edbcaddc5d620d7d043.js\\"
5252
5 | }
5353
6 | ],"
5454
`;
5555
5656
exports[`layers > should throw on additional property 1`] = `
5757
"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
5959
6060
25 | \\"name\\": \\"name\\",
6161
26 | \\"local\\": \\"local\\",
6262
> 27 | \\"foo\\": \\"bar\\"
63-
| ^^^^^ 😲 [95mfoo[39m is not expected to be here!
63+
| ^^^^^ 😲 foo is not expected to be here!
6464
28 | }
6565
29 | ],
6666
30 | \\"bundler_version\\": \\"1.6.0\\""
6767
`;
6868
6969
exports[`layers > should throw on missing flag 1`] = `
7070
"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'
7272
7373
21 | ],
7474
22 | \\"layers\\": [
7575
> 23 | {
76-
| ^ ☹️ [95mflag[39m is missing here!
76+
| ^ ☹️ flag is missing here!
7777
24 | \\"name\\": \\"name\\",
7878
25 | \\"local\\": \\"local\\"
7979
26 | }"
8080
`;
8181
8282
exports[`layers > should throw on missing name 1`] = `
8383
"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'
8585
8686
21 | ],
8787
22 | \\"layers\\": [
8888
> 23 | {
89-
| ^ ☹️ [95mname[39m is missing here!
89+
| ^ ☹️ name is missing here!
9090
24 | \\"flag\\": \\"flag\\",
9191
25 | \\"local\\": \\"local\\"
9292
26 | }"
9393
`;
9494
9595
exports[`route > should throw on additional property 1`] = `
9696
"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
9898
9999
11 | \\"function\\": \\"hello\\",
100100
12 | \\"pattern\\": \\"^/hello/?$\\",
101101
> 13 | \\"foo\\": \\"bar\\"
102-
| ^^^^^ 😲 [95mfoo[39m is not expected to be here!
102+
| ^^^^^ 😲 foo is not expected to be here!
103103
14 | }
104104
15 | ],
105105
16 | \\"post_cache_routes\\": ["
106106
`;
107107
108108
exports[`route > should throw on invalid pattern 1`] = `
109109
"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
111111
112112
10 | \\"name\\": \\"name\\",
113113
11 | \\"function\\": \\"hello\\",
114114
> 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
116116
13 | }
117117
14 | ],
118118
15 | \\"post_cache_routes\\": ["
119119
`;
120120
121121
exports[`route > should throw on missing function 1`] = `
122122
"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'
124124
125125
7 | ],
126126
8 | \\"routes\\": [
127127
> 9 | {
128-
| ^ ☹️ [95mfunction[39m is missing here!
128+
| ^ ☹️ function is missing here!
129129
10 | \\"name\\": \\"name\\",
130130
11 | \\"pattern\\": \\"^/hello/?$\\"
131131
12 | }"
132132
`;
133133
134134
exports[`route > should throw on missing pattern 1`] = `
135135
"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'
137137
138138
7 | ],
139139
8 | \\"routes\\": [
140140
> 9 | {
141-
| ^ ☹️ [95mpattern[39m is missing here!
141+
| ^ ☹️ pattern is missing here!
142142
10 | \\"name\\": \\"name\\",
143143
11 | \\"function\\": \\"hello\\"
144144
12 | }"
145145
`;
146146
147147
exports[`should show multiple errors 1`] = `
148148
"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
150150
151151
28 | ],
152152
29 | \\"bundler_version\\": \\"1.6.0\\",
153153
> 30 | \\"foo\\": \\"bar\\",
154-
| ^^^^^ 😲 [95mfoo[39m is not expected to be here!
154+
| ^^^^^ 😲 foo is not expected to be here!
155155
31 | \\"baz\\": \\"bar\\"
156156
32 | }
157157
158-
[31m[1mADDTIONAL PROPERTY[22m[39m[31m must NOT have additional properties[39m
158+
ADDTIONAL PROPERTY must NOT have additional properties
159159
160160
29 | \\"bundler_version\\": \\"1.6.0\\",
161161
30 | \\"foo\\": \\"bar\\",
162162
> 31 | \\"baz\\": \\"bar\\"
163-
| ^^^^^ 😲 [95mbaz[39m is not expected to be here!
163+
| ^^^^^ 😲 baz is not expected to be here!
164164
32 | }"
165165
`;
166166
167167
exports[`should throw on additional property on root level 1`] = `
168168
"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
170170
171171
28 | ],
172172
29 | \\"bundler_version\\": \\"1.6.0\\",
173173
> 30 | \\"foo\\": \\"bar\\"
174-
| ^^^^^ 😲 [95mfoo[39m is not expected to be here!
174+
| ^^^^^ 😲 foo is not expected to be here!
175175
31 | }"
176176
`;

package-lock.json

Lines changed: 1 addition & 0 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier",
2929
"test:dev": "run-s test:dev:*",
3030
"test:ci": "run-s test:ci:*",
31-
"test:dev:vitest": "vitest run",
31+
"test:dev:vitest": "cross-env FORCE_COLOR=0 vitest run",
3232
"test:dev:deno": "deno test --allow-all deno",
33-
"test:ci:vitest": "vitest run",
33+
"test:ci:vitest": "cross-env FORCE_COLOR=0 vitest run",
3434
"test:ci:deno": "deno test --allow-all deno",
3535
"test:integration": "node --experimental-modules test/integration/test.js"
3636
},
@@ -59,6 +59,7 @@
5959
"@types/uuid": "^8.3.4",
6060
"@vitest/coverage-c8": "^0.25.0",
6161
"archiver": "^5.3.1",
62+
"cross-env": "^7.0.3",
6263
"husky": "^8.0.0",
6364
"nock": "^13.2.4",
6465
"tar": "^6.1.11",

0 commit comments

Comments
 (0)