Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vuejs/test-utils
/ functions
Functions
316 in github.com/vuejs/test-utils
⨍
Functions
316
◇
Types & classes
58
↓ 500 callers
Function
mount
( inputComponent: any, options?: MountingOptions<any> & Record<string, any> )
src/mount.ts:61
↓ 187 callers
Method
find
( selector: K )
src/interfaces/wrapperLike.ts:16
↓ 176 callers
Method
html
()
src/interfaces/wrapperLike.ts:95
↓ 118 callers
Method
findComponent
(selector: string)
src/interfaces/wrapperLike.ts:35
↓ 105 callers
Method
text
()
src/interfaces/wrapperLike.ts:105
↓ 98 callers
Method
exists
()
src/interfaces/wrapperLike.ts:106
↓ 92 callers
Method
trigger
( eventString: DomEventNameWithModifier, options?: TriggerOptions )
src/interfaces/wrapperLike.ts:112
↓ 69 callers
Method
emitted
( eventName?: string )
src/vueWrapper.ts:239
↓ 48 callers
Method
setValue
(value: any)
src/interfaces/wrapperLike.ts:108
↓ 39 callers
Method
get
( selector: K )
src/interfaces/wrapperLike.ts:66
↓ 34 callers
Method
props
( selector?: Selector )
src/vueWrapper.ts:230
↓ 32 callers
Method
classes
()
src/interfaces/wrapperLike.ts:97
↓ 32 callers
Function
shallowMount
(component: any, options?: any)
src/mount.ts:130
↓ 28 callers
Method
findAll
( selector: K )
src/interfaces/wrapperLike.ts:25
↓ 22 callers
Method
attributes
()
src/interfaces/wrapperLike.ts:101
↓ 22 callers
Method
findAllComponents
(selector: string)
src/interfaces/wrapperLike.ts:50
↓ 21 callers
Function
test
(wrapper: VueWrapper<any>)
tests/shallowMount.spec.ts:13
↓ 20 callers
Method
getComponent
(selector: string)
src/interfaces/wrapperLike.ts:79
↓ 19 callers
Method
isVisible
()
src/interfaces/wrapperLike.ts:110
↓ 17 callers
Method
setData
(data: Record<string, unknown>)
src/vueWrapper.ts:261
↓ 17 callers
Method
setProps
(props: Partial<T['$props']>)
src/vueWrapper.ts:286
↓ 15 callers
Function
isDeepRef
(r: DeepRef<T> | unknown)
src/utils/isDeepRef.ts:33
↓ 15 callers
Function
renderToString
(component: any, options?: any)
src/renderToString.ts:24
↓ 11 callers
Function
flushPromises
()
src/utils/flushPromises.ts:4
↓ 11 callers
Method
unmount
()
src/vueWrapper.ts:301
↓ 10 callers
Method
install
(_app: App)
tests/config.spec.ts:69
↓ 8 callers
Function
createWrapperError
( wrapperType: 'DOMWrapper' | 'VueWrapper' )
src/errorWrapper.ts:1
↓ 8 callers
Method
extend
(instance: Instance)
src/config.ts:46
↓ 6 callers
Function
emit
(eventType, ...payload)
src/emit.ts:62
↓ 6 callers
Function
isObject
(obj: unknown)
src/utils.ts:72
↓ 5 callers
Function
createDOMWrapper
(element, subTree)
src/wrapperFactory.ts:40
↓ 5 callers
Function
enableAutoUnmount
(hook: (callback: () => void) => void)
src/utils/autoUnmount.ts:12
↓ 5 callers
Method
install
()
tests/mountingOptions/global.plugins.spec.ts:16
↓ 5 callers
Function
isObjectComponent
( component: unknown )
src/utils.ts:146
↓ 5 callers
Function
mergeDeep
( target: Record<string, unknown>, source: Record<string, unknown> )
src/utils.ts:95
↓ 5 callers
Function
mountComponent
()
tests/features/plugins.spec.ts:25
↓ 5 callers
Function
unwrapLegacyVueExtendComponent
( selector: T )
src/utils/vueCompatSupport.ts:26
↓ 4 callers
Function
createEntry
(options)
rollup.config.ts:17
↓ 4 callers
Function
createVueWrapper
(app, vm, setProps)
src/wrapperFactory.ts:42
↓ 4 callers
Method
getCurrentComponent
()
src/vueWrapper.ts:161
↓ 4 callers
Method
getRootNodes
()
src/vueWrapper.ts:153
↓ 4 callers
Function
isElement
(element: Node)
src/utils/isElement.ts:1
↓ 4 callers
Function
registerStub
({ source, stub }: { source: Component stub: Component })
src/stubs.ts:18
↓ 3 callers
Function
aggregateChildren
* Collect all children * @param nodes * @param children
src/utils/find.ts:107
↓ 3 callers
Function
cacheStringFunction
(fn: T)
src/utils/vueShared.ts:1
↓ 3 callers
Function
commonTests
(vm: any)
tests/expose.spec.ts:12
↓ 3 callers
Method
getResult
()
tests/setData.spec.ts:204
↓ 3 callers
Function
isComponent
( component: unknown )
src/utils.ts:131
↓ 3 callers
Function
isFunctionalComponent
( component: unknown )
src/utils.ts:140
↓ 3 callers
Function
matchName
(target: string, sourceName: string)
src/utils/matchName.ts:3
↓ 3 callers
Function
renderOptions
()
tests/setValue.spec.ts:36
↓ 3 callers
Method
setChecked
(checked = true)
src/domWrapper.ts:86
↓ 2 callers
Function
captureDevtoolsVueComponentEmitEvent
( eventType: string, payload: any[] )
src/emit.ts:49
↓ 2 callers
Method
changeCount
(count: number)
test-dts/mount.d-test.ts:259
↓ 2 callers
Method
changeMessage
(text: string)
test-dts/shallowMount.d-test.ts:107
↓ 2 callers
Method
changeMessage
(text: string)
test-dts/mount.d-test.ts:216
↓ 2 callers
Function
convertStubsToRecord
(stubs: Stubs)
src/utils.ts:180
↓ 2 callers
Function
createInstance
( // eslint-disable-next-line @typescript-eslint/no-empty-object-type inputComponent: DefineComponent<{},
src/createInstance.ts:72
↓ 2 callers
Function
createStub
({ name, type, renderStubDefaultSlot }: StubOptions)
src/vnodeTransformers/stubComponentsTransformer.ts:90
↓ 2 callers
Function
fakeFetch
(text: string)
tests/renderToString.spec.ts:37
↓ 2 callers
Function
getComponentName
( instance: any | null, type: VNodeTypes )
src/utils/componentName.ts:35
↓ 2 callers
Function
getComponentNameInSetup
( instance: any | null, type: VNodeTypes )
src/utils/componentName.ts:8
↓ 2 callers
Function
getComponentRegisteredName
( instance: ComponentInternalInstance | null, type: VNodeTypes )
src/utils/componentName.ts:17
↓ 2 callers
Function
getComponentsFromStubs
( stubs: Stubs )
src/utils.ts:197
↓ 2 callers
Function
getOriginalComponentFromStub
( stub: Component )
src/stubs.ts:28
↓ 2 callers
Function
hasOwnProperty
( obj: O, prop: P )
src/utils.ts:160
↓ 2 callers
Function
isDirectiveKey
(key: string)
src/utils.ts:195
↓ 2 callers
Function
isKeepAlive
(type: any)
src/vnodeTransformers/util.ts:24
↓ 2 callers
Function
isLegacyExtendedComponent
(component: unknown)
src/utils/vueCompatSupport.ts:9
↓ 2 callers
Function
isLegacyFunctionalComponent
(component: unknown)
src/utils/vueCompatSupport.ts:32
↓ 2 callers
Function
isRootComponent
( rootComponents: RootComponents, type: VNodeTransformerInputComponentType, instance: InstanceArgsType )
src/vnodeTransformers/util.ts:32
↓ 2 callers
Function
isTeleport
(type: any)
src/vnodeTransformers/util.ts:23
↓ 2 callers
Function
matches
( node: VNode, rawSelector: FindAllComponentsSelector )
src/utils/find.ts:22
↓ 2 callers
Function
mergeStubs
(target: Record<string, any>, source: GlobalMountOptions)
src/utils.ts:12
↓ 2 callers
Function
recordEvent
( vm: ComponentInternalInstance, event: string, args: unknown[] )
src/emit.ts:68
↓ 2 callers
Function
registerFactory
( type: WrapperType.DOMWrapper | WrapperType.VueWrapper, fn: any )
src/wrapperFactory.ts:33
↓ 2 callers
Function
resolveComponentStubByName
( componentName: string, stubs: Record<string, Component | boolean> )
src/vnodeTransformers/stubComponentsTransformer.ts:143
↓ 1 callers
Function
attachEmitListener
()
src/emit.ts:31
↓ 1 callers
Method
attachNativeEventListener
()
src/vueWrapper.ts:180
↓ 1 callers
Method
content
()
tests/features/classComponent.spec.ts:60
↓ 1 callers
Function
createDOMEvent
( eventString: DomEventNameWithModifier | string, options?: TriggerOptions )
src/createDomEvent.ts:147
↓ 1 callers
Function
createDefaultStub
( kebabTag: string, predicate: (type: any) => boolean, type: any, stubs: Record<string, boolean | Comp
src/vnodeTransformers/stubComponentsTransformer.ts:69
↓ 1 callers
Function
createDevTools
()
src/emit.ts:60
↓ 1 callers
Function
createEvent
(eventParams: EventParams)
src/createDomEvent.ts:129
↓ 1 callers
Function
createStubComponentsTransformer
({ rootComponents, stubs = {}, shallow = false, renderStubDefaultSlot = false }: CreateStubComponentsT
src/vnodeTransformers/stubComponentsTransformer.ts:166
↓ 1 callers
Function
createStubDirectivesTransformer
({ directives = {} }: CreateDirectivesTransformerConfig)
src/vnodeTransformers/stubDirectivesTransformer.ts:10
↓ 1 callers
Function
createVMProxy
* Creates a proxy around the VM instance. * This proxy returns the value from the setupState if there is one, or the one from the VM if not. * See h
src/vueWrapper.ts:24
↓ 1 callers
Function
createVNodeTransformer
({ rootComponents, transformers }: { rootComponents: RootComponents transformers: VTUVNodeTypeTransfor
src/vnodeTransformers/util.ts:45
↓ 1 callers
Method
data
()
tests/features/classComponent.spec.ts:77
↓ 1 callers
Function
deeplyCheckForRef
( r: DeepRef<T> | unknown, visitedObjects: WeakMap<object, boolean> )
src/utils/isDeepRef.ts:13
↓ 1 callers
Function
disableAutoUnmount
()
src/utils/autoUnmount.ts:7
↓ 1 callers
Function
emitted
( vm: ComponentPublicInstance, eventName?: string )
src/emit.ts:17
↓ 1 callers
Function
find
( root: VNode, selector: FindAllComponentsSelector )
src/utils/find.ts:145
↓ 1 callers
Function
findAfterNextTick
( wrapper: VueWrapper<any>, selector: string )
tests/find.spec.ts:133
↓ 1 callers
Function
findAllVNodes
( vnode: VNode, selector: FindAllComponentsSelector )
src/utils/find.ts:120
↓ 1 callers
Function
fn
()
tests/setValue.spec.ts:283
↓ 1 callers
Function
generateModifiers
* Groups modifiers into lists
src/createDomEvent.ts:32
↓ 1 callers
Function
getDirectivesFromStubs
( stubs: Stubs )
src/utils.ts:207
↓ 1 callers
Function
getEventProperties
(eventParams: EventParams)
src/createDomEvent.ts:66
↓ 1 callers
Function
getGlobalThis
()
src/utils.ts:241
next →
1–100 of 316, ranked by callers