@@ -6,10 +6,46 @@ import { installCompat as installVTUCompat, fullCompatConfig } from 'vue-test-ut
66const useVue2 = 'USE_VUE2' in process . env
77if ( ! useVue2 ) {
88 Vue . configureCompat ( {
9- MODE : 2
9+ MODE : 2 ,
10+ ATTR_FALSE_VALUE : 'suppress-warning' ,
11+ COMPONENT_FUNCTIONAL : 'suppress-warning' ,
12+ COMPONENT_V_MODEL : 'suppress-warning' ,
13+ CONFIG_OPTION_MERGE_STRATS : 'suppress-warning' ,
14+ CONFIG_WHITESPACE : 'suppress-warning' ,
15+ CUSTOM_DIR : 'suppress-warning' ,
16+ GLOBAL_EXTEND : 'suppress-warning' ,
17+ GLOBAL_MOUNT : 'suppress-warning' ,
18+ GLOBAL_PRIVATE_UTIL : 'suppress-warning' ,
19+ GLOBAL_PROTOTYPE : 'suppress-warning' ,
20+ GLOBAL_SET : 'suppress-warning' ,
21+ INSTANCE_ATTRS_CLASS_STYLE : 'suppress-warning' ,
22+ INSTANCE_CHILDREN : 'suppress-warning' ,
23+ INSTANCE_DELETE : 'suppress-warning' ,
24+ INSTANCE_DESTROY : 'suppress-warning' ,
25+ INSTANCE_EVENT_EMITTER : 'suppress-warning' ,
26+ INSTANCE_EVENT_HOOKS : 'suppress-warning' ,
27+ INSTANCE_LISTENERS : 'suppress-warning' ,
28+ INSTANCE_SCOPED_SLOTS : 'suppress-warning' ,
29+ INSTANCE_SET : 'suppress-warning' ,
30+ OPTIONS_BEFORE_DESTROY : 'suppress-warning' ,
31+ OPTIONS_DATA_MERGE : 'suppress-warning' ,
32+ OPTIONS_DESTROYED : 'suppress-warning' ,
33+ RENDER_FUNCTION : 'suppress-warning' ,
34+ V_FOR_REF : 'suppress-warning' ,
35+ WATCH_ARRAY : 'suppress-warning'
1036 } )
1137
12- const compatH = new Vue ( { } ) . $createElement
38+ let compatH
39+ Vue . config . compilerOptions . whitespace = 'condense'
40+ Vue . createApp ( {
41+ compatConfig : {
42+ MODE : 3 ,
43+ RENDER_FUNCTION : 'suppress-warning'
44+ } ,
45+ render ( h ) {
46+ compatH = h
47+ }
48+ } ) . mount ( document . createElement ( 'div' ) )
1349 installVTUCompat ( VTU , fullCompatConfig , compatH )
1450}
1551
0 commit comments