@@ -61,6 +61,8 @@ describe("normalizeAndValidateConfig()", () => {
61
61
data_blobs : undefined ,
62
62
workers_dev : undefined ,
63
63
zone_id : undefined ,
64
+ minify : undefined ,
65
+ node_compat : undefined ,
64
66
} ) ;
65
67
expect ( diagnostics . hasErrors ( ) ) . toBe ( false ) ;
66
68
expect ( diagnostics . hasWarnings ( ) ) . toBe ( false ) ;
@@ -662,6 +664,8 @@ describe("normalizeAndValidateConfig()", () => {
662
664
} ,
663
665
] ,
664
666
} ,
667
+ minify : true ,
668
+ node_compat : true ,
665
669
} ;
666
670
667
671
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -721,6 +725,8 @@ describe("normalizeAndValidateConfig()", () => {
721
725
cwd : 1555 ,
722
726
watch_dir : 1666 ,
723
727
} ,
728
+ minify : "INVALID" ,
729
+ node_compat : "INVALID" ,
724
730
} as unknown as RawEnvironment ;
725
731
726
732
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -783,7 +789,9 @@ describe("normalizeAndValidateConfig()", () => {
783
789
- Expected \\"tsconfig\\" to be of type string but got true.
784
790
- Expected \\"name\\" to be of type string, alphanumeric and lowercase with dashes only but got 111.
785
791
- Expected \\"main\\" to be of type string but got 1333.
786
- - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\"."
792
+ - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\".
793
+ - Expected \\"minify\\" to be of type boolean but got \\"INVALID\\".
794
+ - Expected \\"node_compat\\" to be of type boolean but got \\"INVALID\\"."
787
795
` ) ;
788
796
} ) ;
789
797
@@ -1912,6 +1920,8 @@ describe("normalizeAndValidateConfig()", () => {
1912
1920
cwd : "CWD" ,
1913
1921
watch_dir : "WATCH_DIR" ,
1914
1922
} ,
1923
+ minify : true ,
1924
+ node_compat : true ,
1915
1925
} ;
1916
1926
1917
1927
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -1952,6 +1962,8 @@ describe("normalizeAndValidateConfig()", () => {
1952
1962
cwd : "ENV_CWD" ,
1953
1963
watch_dir : "ENV_WATCH_DIR" ,
1954
1964
} ,
1965
+ minify : false ,
1966
+ node_compat : false ,
1955
1967
} ;
1956
1968
const rawConfig : RawConfig = {
1957
1969
name : "mock-name" ,
@@ -1971,6 +1983,8 @@ describe("normalizeAndValidateConfig()", () => {
1971
1983
cwd : "CWD" ,
1972
1984
watch_dir : "WATCH_DIR" ,
1973
1985
} ,
1986
+ minify : true ,
1987
+ node_compat : true ,
1974
1988
env : {
1975
1989
ENV1 : rawEnv ,
1976
1990
} ,
@@ -2221,6 +2235,8 @@ describe("normalizeAndValidateConfig()", () => {
2221
2235
cwd : 1555 ,
2222
2236
watch_dir : 1666 ,
2223
2237
} ,
2238
+ minify : "INVALID" ,
2239
+ node_compat : "INVALID" ,
2224
2240
} as unknown as RawEnvironment ;
2225
2241
2226
2242
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -2253,7 +2269,9 @@ describe("normalizeAndValidateConfig()", () => {
2253
2269
- Expected \\"tsconfig\\" to be of type string but got 123.
2254
2270
- Expected \\"name\\" to be of type string, alphanumeric and lowercase with dashes only but got 111.
2255
2271
- Expected \\"main\\" to be of type string but got 1333.
2256
- - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\"."
2272
+ - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\".
2273
+ - Expected \\"minify\\" to be of type boolean but got \\"INVALID\\".
2274
+ - Expected \\"node_compat\\" to be of type boolean but got \\"INVALID\\"."
2257
2275
` ) ;
2258
2276
} ) ;
2259
2277
0 commit comments