🌐 AI搜索 & 代理 主页
Skip to content

Commit d8edafc

Browse files
committed
chore(test): simplify Vue3 detection
1 parent 779dd69 commit d8edafc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/setup.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import Vue from 'vue'
33
import * as VTU from '@vue/test-utils'
44
import { installCompat as installVTUCompat, fullCompatConfig } from 'vue-test-utils-compat'
55

6-
const useVue3 = 'USE_VUE3' in process.env
7-
if (useVue3) {
6+
if (Vue.configureCompat) {
87
Vue.configureCompat({
98
MODE: 2,
109
ATTR_FALSE_VALUE: 'suppress-warning',

0 commit comments

Comments
 (0)