wip: make tests pass again
This commit is contained in:
@@ -41,3 +41,13 @@ export function softAssertCompatEnabled(key: DeprecationTypes, ...args: any[]) {
|
||||
}
|
||||
return isCompatEnabled(key)
|
||||
}
|
||||
|
||||
// disable features that conflict with v3 behavior
|
||||
if (__TEST__) {
|
||||
configureCompat({
|
||||
COMPONENT_ASYNC: { enabled: false },
|
||||
COMPONENT_FUNCTIONAL: { enabled: false },
|
||||
WATCH_ARRAY: { enabled: false },
|
||||
INSTANCE_ATTRS_CLASS_STYLE: { enabled: false }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isArray, isFunction, isObject, isPromise } from '@vue/shared/src'
|
||||
import { isArray, isFunction, isObject, isPromise } from '@vue/shared'
|
||||
import { defineAsyncComponent } from '../apiAsyncComponent'
|
||||
import { Component, ComponentOptions, FunctionalComponent } from '../component'
|
||||
import { isVNode } from '../vnode'
|
||||
|
||||
Reference in New Issue
Block a user