@@ -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 (
@@ -729,6 +733,8 @@ describe("normalizeAndValidateConfig()", () => {
729
733
cwd : 1555 ,
730
734
watch_dir : 1666 ,
731
735
} ,
736
+ minify : "INVALID" ,
737
+ node_compat : "INVALID" ,
732
738
} as unknown as RawEnvironment ;
733
739
734
740
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -791,7 +797,9 @@ describe("normalizeAndValidateConfig()", () => {
791
797
- Expected \\"tsconfig\\" to be of type string but got true.
792
798
- Expected \\"name\\" to be of type string, alphanumeric and lowercase with dashes only but got 111.
793
799
- Expected \\"main\\" to be of type string but got 1333.
794
- - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\"."
800
+ - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\".
801
+ - Expected \\"minify\\" to be of type boolean but got \\"INVALID\\".
802
+ - Expected \\"node_compat\\" to be of type boolean but got \\"INVALID\\"."
795
803
` ) ;
796
804
} ) ;
797
805
@@ -1917,6 +1925,8 @@ describe("normalizeAndValidateConfig()", () => {
1917
1925
cwd : "CWD" ,
1918
1926
watch_dir : "WATCH_DIR" ,
1919
1927
} ,
1928
+ minify : true ,
1929
+ node_compat : true ,
1920
1930
} ;
1921
1931
1922
1932
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -1957,6 +1967,8 @@ describe("normalizeAndValidateConfig()", () => {
1957
1967
cwd : "ENV_CWD" ,
1958
1968
watch_dir : "ENV_WATCH_DIR" ,
1959
1969
} ,
1970
+ minify : false ,
1971
+ node_compat : false ,
1960
1972
} ;
1961
1973
const rawConfig : RawConfig = {
1962
1974
name : "mock-name" ,
@@ -1976,6 +1988,8 @@ describe("normalizeAndValidateConfig()", () => {
1976
1988
cwd : "CWD" ,
1977
1989
watch_dir : "WATCH_DIR" ,
1978
1990
} ,
1991
+ minify : true ,
1992
+ node_compat : true ,
1979
1993
env : {
1980
1994
ENV1 : rawEnv ,
1981
1995
} ,
@@ -2226,6 +2240,8 @@ describe("normalizeAndValidateConfig()", () => {
2226
2240
cwd : 1555 ,
2227
2241
watch_dir : 1666 ,
2228
2242
} ,
2243
+ minify : "INVALID" ,
2244
+ node_compat : "INVALID" ,
2229
2245
} as unknown as RawEnvironment ;
2230
2246
2231
2247
const { config, diagnostics } = normalizeAndValidateConfig (
@@ -2258,7 +2274,9 @@ describe("normalizeAndValidateConfig()", () => {
2258
2274
- Expected \\"tsconfig\\" to be of type string but got 123.
2259
2275
- Expected \\"name\\" to be of type string, alphanumeric and lowercase with dashes only but got 111.
2260
2276
- Expected \\"main\\" to be of type string but got 1333.
2261
- - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\"."
2277
+ - Expected \\"usage_model\\" field to be one of [\\"bundled\\",\\"unbound\\"] but got \\"INVALID\\".
2278
+ - Expected \\"minify\\" to be of type boolean but got \\"INVALID\\".
2279
+ - Expected \\"node_compat\\" to be of type boolean but got \\"INVALID\\"."
2262
2280
` ) ;
2263
2281
} ) ;
2264
2282
0 commit comments