@@ -2,32 +2,58 @@ import { HIGHEST_API_VERSION } from '@lwc/shared';
22
33// FIXME: Add jsdoc comments to each export explaining what it's used for
44
5+ // --- Boolean test flags --- //
6+
57export const LEGACY_BROWSERS = Boolean ( process . env . LEGACY_BROWSERS ) ;
8+
69export const DISABLE_SYNTHETIC = Boolean ( process . env . DISABLE_SYNTHETIC ) ;
10+
711export const FORCE_NATIVE_SHADOW_MODE_FOR_TEST = Boolean (
812 process . env . FORCE_NATIVE_SHADOW_MODE_FOR_TEST
913) ;
14+
1015export const ENABLE_ARIA_REFLECTION_GLOBAL_POLYFILL = Boolean (
1116 process . env . ENABLE_ARIA_REFLECTION_GLOBAL_POLYFILL
1217) ;
18+
1319export const DISABLE_SYNTHETIC_SHADOW_SUPPORT_IN_COMPILER = Boolean (
1420 process . env . DISABLE_SYNTHETIC_SHADOW_SUPPORT_IN_COMPILER
1521) ;
22+
1623export const DISABLE_STATIC_CONTENT_OPTIMIZATION = Boolean (
1724 process . env . DISABLE_STATIC_CONTENT_OPTIMIZATION
1825) ;
26+
1927export const ENABLE_SYNTHETIC_SHADOW_IN_HYDRATION = Boolean (
2028 process . env . ENABLE_SYNTHETIC_SHADOW_IN_HYDRATION
2129) ;
22- export const NODE_ENV_FOR_TEST = process . env . NODE_ENV_FOR_TEST ;
23- export const API_VERSION = process . env . API_VERSION
24- ? parseInt ( process . env . API_VERSION , 10 )
25- : HIGHEST_API_VERSION ;
30+
2631export const DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE = Boolean (
2732 process . env . DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE
2833) ;
34+
2935export const ENGINE_SERVER = Boolean ( process . env . ENGINE_SERVER ) ;
3036
37+ // --- Test config --- //
38+
39+ export const API_VERSION = process . env . API_VERSION
40+ ? parseInt ( process . env . API_VERSION , 10 )
41+ : HIGHEST_API_VERSION ;
42+
43+ export const NODE_ENV_FOR_TEST = process . env . NODE_ENV_FOR_TEST ;
44+ export const GREP = process . env . GREP ;
45+
46+ // --- CI config --- //
47+
48+ export const COVERAGE = Boolean ( process . env . COVERAGE ) ;
49+ export const SAUCE_USERNAME = process . env . SAUCE_USERNAME ;
50+ export const SAUCE_ACCESS_KEY = process . env . SAUCE_ACCESS_KEY || process . env . SAUCE_KEY ;
51+ export const SAUCE_TUNNEL_ID = process . env . SAUCE_TUNNEL_ID ;
52+ export const IS_CI = Boolean ( process . env . IS_CI ) ;
53+ export const GITHUB_RUN_ID = process . env . GITHUB_RUN_ID ;
54+
55+ // --- Derivative values --- //
56+
3157/** Unique directory name that encodes the flags that the tests were executed with. */
3258export const COVERAGE_DIR_FOR_OPTIONS =
3359 Object . entries ( {
@@ -46,11 +72,3 @@ export const COVERAGE_DIR_FOR_OPTIONS =
4672 . filter ( ( [ , val ] ) => val )
4773 . map ( ( [ key , val ] ) => `${ key } =${ val } ` )
4874 . join ( '/' ) || 'no-options' ;
49-
50- export const GREP = process . env . GREP ;
51- export const COVERAGE = Boolean ( process . env . COVERAGE ) ;
52- export const SAUCE_USERNAME = process . env . SAUCE_USERNAME ;
53- export const SAUCE_ACCESS_KEY = process . env . SAUCE_ACCESS_KEY || process . env . SAUCE_KEY ;
54- export const SAUCE_TUNNEL_ID = process . env . SAUCE_TUNNEL_ID ;
55- export const IS_CI = Boolean ( process . env . IS_CI ) ;
56- export const GITHUB_RUN_ID = process . env . GITHUB_RUN_ID ;
0 commit comments