File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/@lwc/integration-not-karma Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as options from './helpers/options.mjs';
44
55const pluck = ( obj , keys ) => Object . fromEntries ( keys . map ( ( k ) => [ k , Boolean ( obj [ k ] ) ] ) ) ;
66
7+ /** `process.env` to inject into test environment. */
78const env = {
89 ...pluck ( options , [
910 'API_VERSION' ,
@@ -135,10 +136,9 @@ export default {
135136 <body>
136137 <script type="module">
137138 globalThis.process = ${ JSON . stringify ( { env } ) } ;
138- globalThis.lwcRuntimeFlags = ${ JSON . stringify ( {
139- DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE :
140- env . DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE ,
141- } ) } ;
139+ globalThis.lwcRuntimeFlags = ${ JSON . stringify (
140+ pluck ( options , [ 'DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE' ] )
141+ ) } ;
142142 </script>
143143 <script type="module" src="./helpers/setup.mjs"></script>
144144 <script type="module" src="./helpers/wtr-utils.mjs"></script>
You can’t perform that action at this time.
0 commit comments