MCPcopy Create free account

hub / github.com/vuejs/test-utils / functions

Functions316 in github.com/vuejs/test-utils

↓ 500 callersFunctionmount
( inputComponent: any, options?: MountingOptions<any> & Record<string, any> )
src/mount.ts:61
↓ 187 callersMethodfind
( selector: K )
src/interfaces/wrapperLike.ts:16
↓ 176 callersMethodhtml
()
src/interfaces/wrapperLike.ts:95
↓ 118 callersMethodfindComponent
(selector: string)
src/interfaces/wrapperLike.ts:35
↓ 105 callersMethodtext
()
src/interfaces/wrapperLike.ts:105
↓ 98 callersMethodexists
()
src/interfaces/wrapperLike.ts:106
↓ 92 callersMethodtrigger
( eventString: DomEventNameWithModifier, options?: TriggerOptions )
src/interfaces/wrapperLike.ts:112
↓ 69 callersMethodemitted
( eventName?: string )
src/vueWrapper.ts:239
↓ 48 callersMethodsetValue
(value: any)
src/interfaces/wrapperLike.ts:108
↓ 39 callersMethodget
( selector: K )
src/interfaces/wrapperLike.ts:66
↓ 34 callersMethodprops
( selector?: Selector )
src/vueWrapper.ts:230
↓ 32 callersMethodclasses
()
src/interfaces/wrapperLike.ts:97
↓ 32 callersFunctionshallowMount
(component: any, options?: any)
src/mount.ts:130
↓ 28 callersMethodfindAll
( selector: K )
src/interfaces/wrapperLike.ts:25
↓ 22 callersMethodattributes
()
src/interfaces/wrapperLike.ts:101
↓ 22 callersMethodfindAllComponents
(selector: string)
src/interfaces/wrapperLike.ts:50
↓ 21 callersFunctiontest
(wrapper: VueWrapper<any>)
tests/shallowMount.spec.ts:13
↓ 20 callersMethodgetComponent
(selector: string)
src/interfaces/wrapperLike.ts:79
↓ 19 callersMethodisVisible
()
src/interfaces/wrapperLike.ts:110
↓ 17 callersMethodsetData
(data: Record<string, unknown>)
src/vueWrapper.ts:261
↓ 17 callersMethodsetProps
(props: Partial<T['$props']>)
src/vueWrapper.ts:286
↓ 15 callersFunctionisDeepRef
(r: DeepRef<T> | unknown)
src/utils/isDeepRef.ts:33
↓ 15 callersFunctionrenderToString
(component: any, options?: any)
src/renderToString.ts:24
↓ 11 callersFunctionflushPromises
()
src/utils/flushPromises.ts:4
↓ 11 callersMethodunmount
()
src/vueWrapper.ts:301
↓ 10 callersMethodinstall
(_app: App)
tests/config.spec.ts:69
↓ 8 callersFunctioncreateWrapperError
( wrapperType: 'DOMWrapper' | 'VueWrapper' )
src/errorWrapper.ts:1
↓ 8 callersMethodextend
(instance: Instance)
src/config.ts:46
↓ 6 callersFunctionemit
(eventType, ...payload)
src/emit.ts:62
↓ 6 callersFunctionisObject
(obj: unknown)
src/utils.ts:72
↓ 5 callersFunctioncreateDOMWrapper
(element, subTree)
src/wrapperFactory.ts:40
↓ 5 callersFunctionenableAutoUnmount
(hook: (callback: () => void) => void)
src/utils/autoUnmount.ts:12
↓ 5 callersMethodinstall
()
tests/mountingOptions/global.plugins.spec.ts:16
↓ 5 callersFunctionisObjectComponent
( component: unknown )
src/utils.ts:146
↓ 5 callersFunctionmergeDeep
( target: Record<string, unknown>, source: Record<string, unknown> )
src/utils.ts:95
↓ 5 callersFunctionmountComponent
()
tests/features/plugins.spec.ts:25
↓ 5 callersFunctionunwrapLegacyVueExtendComponent
( selector: T )
src/utils/vueCompatSupport.ts:26
↓ 4 callersFunctioncreateEntry
(options)
rollup.config.ts:17
↓ 4 callersFunctioncreateVueWrapper
(app, vm, setProps)
src/wrapperFactory.ts:42
↓ 4 callersMethodgetCurrentComponent
()
src/vueWrapper.ts:161
↓ 4 callersMethodgetRootNodes
()
src/vueWrapper.ts:153
↓ 4 callersFunctionisElement
(element: Node)
src/utils/isElement.ts:1
↓ 4 callersFunctionregisterStub
({ source, stub }: { source: Component stub: Component })
src/stubs.ts:18
↓ 3 callersFunctionaggregateChildren
* Collect all children * @param nodes * @param children
src/utils/find.ts:107
↓ 3 callersFunctioncacheStringFunction
(fn: T)
src/utils/vueShared.ts:1
↓ 3 callersFunctioncommonTests
(vm: any)
tests/expose.spec.ts:12
↓ 3 callersMethodgetResult
()
tests/setData.spec.ts:204
↓ 3 callersFunctionisComponent
( component: unknown )
src/utils.ts:131
↓ 3 callersFunctionisFunctionalComponent
( component: unknown )
src/utils.ts:140
↓ 3 callersFunctionmatchName
(target: string, sourceName: string)
src/utils/matchName.ts:3
↓ 3 callersFunctionrenderOptions
()
tests/setValue.spec.ts:36
↓ 3 callersMethodsetChecked
(checked = true)
src/domWrapper.ts:86
↓ 2 callersFunctioncaptureDevtoolsVueComponentEmitEvent
( eventType: string, payload: any[] )
src/emit.ts:49
↓ 2 callersMethodchangeCount
(count: number)
test-dts/mount.d-test.ts:259
↓ 2 callersMethodchangeMessage
(text: string)
test-dts/shallowMount.d-test.ts:107
↓ 2 callersMethodchangeMessage
(text: string)
test-dts/mount.d-test.ts:216
↓ 2 callersFunctionconvertStubsToRecord
(stubs: Stubs)
src/utils.ts:180
↓ 2 callersFunctioncreateInstance
( // eslint-disable-next-line @typescript-eslint/no-empty-object-type inputComponent: DefineComponent<{},
src/createInstance.ts:72
↓ 2 callersFunctioncreateStub
({ name, type, renderStubDefaultSlot }: StubOptions)
src/vnodeTransformers/stubComponentsTransformer.ts:90
↓ 2 callersFunctionfakeFetch
(text: string)
tests/renderToString.spec.ts:37
↓ 2 callersFunctiongetComponentName
( instance: any | null, type: VNodeTypes )
src/utils/componentName.ts:35
↓ 2 callersFunctiongetComponentNameInSetup
( instance: any | null, type: VNodeTypes )
src/utils/componentName.ts:8
↓ 2 callersFunctiongetComponentRegisteredName
( instance: ComponentInternalInstance | null, type: VNodeTypes )
src/utils/componentName.ts:17
↓ 2 callersFunctiongetComponentsFromStubs
( stubs: Stubs )
src/utils.ts:197
↓ 2 callersFunctiongetOriginalComponentFromStub
( stub: Component )
src/stubs.ts:28
↓ 2 callersFunctionhasOwnProperty
( obj: O, prop: P )
src/utils.ts:160
↓ 2 callersFunctionisDirectiveKey
(key: string)
src/utils.ts:195
↓ 2 callersFunctionisKeepAlive
(type: any)
src/vnodeTransformers/util.ts:24
↓ 2 callersFunctionisLegacyExtendedComponent
(component: unknown)
src/utils/vueCompatSupport.ts:9
↓ 2 callersFunctionisLegacyFunctionalComponent
(component: unknown)
src/utils/vueCompatSupport.ts:32
↓ 2 callersFunctionisRootComponent
( rootComponents: RootComponents, type: VNodeTransformerInputComponentType, instance: InstanceArgsType )
src/vnodeTransformers/util.ts:32
↓ 2 callersFunctionisTeleport
(type: any)
src/vnodeTransformers/util.ts:23
↓ 2 callersFunctionmatches
( node: VNode, rawSelector: FindAllComponentsSelector )
src/utils/find.ts:22
↓ 2 callersFunctionmergeStubs
(target: Record<string, any>, source: GlobalMountOptions)
src/utils.ts:12
↓ 2 callersFunctionrecordEvent
( vm: ComponentInternalInstance, event: string, args: unknown[] )
src/emit.ts:68
↓ 2 callersFunctionregisterFactory
( type: WrapperType.DOMWrapper | WrapperType.VueWrapper, fn: any )
src/wrapperFactory.ts:33
↓ 2 callersFunctionresolveComponentStubByName
( componentName: string, stubs: Record<string, Component | boolean> )
src/vnodeTransformers/stubComponentsTransformer.ts:143
↓ 1 callersFunctionattachEmitListener
()
src/emit.ts:31
↓ 1 callersMethodattachNativeEventListener
()
src/vueWrapper.ts:180
↓ 1 callersMethodcontent
()
tests/features/classComponent.spec.ts:60
↓ 1 callersFunctioncreateDOMEvent
( eventString: DomEventNameWithModifier | string, options?: TriggerOptions )
src/createDomEvent.ts:147
↓ 1 callersFunctioncreateDefaultStub
( kebabTag: string, predicate: (type: any) => boolean, type: any, stubs: Record<string, boolean | Comp
src/vnodeTransformers/stubComponentsTransformer.ts:69
↓ 1 callersFunctioncreateDevTools
()
src/emit.ts:60
↓ 1 callersFunctioncreateEvent
(eventParams: EventParams)
src/createDomEvent.ts:129
↓ 1 callersFunctioncreateStubComponentsTransformer
({ rootComponents, stubs = {}, shallow = false, renderStubDefaultSlot = false }: CreateStubComponentsT
src/vnodeTransformers/stubComponentsTransformer.ts:166
↓ 1 callersFunctioncreateStubDirectivesTransformer
({ directives = {} }: CreateDirectivesTransformerConfig)
src/vnodeTransformers/stubDirectivesTransformer.ts:10
↓ 1 callersFunctioncreateVMProxy
* 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 callersFunctioncreateVNodeTransformer
({ rootComponents, transformers }: { rootComponents: RootComponents transformers: VTUVNodeTypeTransfor
src/vnodeTransformers/util.ts:45
↓ 1 callersMethoddata
()
tests/features/classComponent.spec.ts:77
↓ 1 callersFunctiondeeplyCheckForRef
( r: DeepRef<T> | unknown, visitedObjects: WeakMap<object, boolean> )
src/utils/isDeepRef.ts:13
↓ 1 callersFunctiondisableAutoUnmount
()
src/utils/autoUnmount.ts:7
↓ 1 callersFunctionemitted
( vm: ComponentPublicInstance, eventName?: string )
src/emit.ts:17
↓ 1 callersFunctionfind
( root: VNode, selector: FindAllComponentsSelector )
src/utils/find.ts:145
↓ 1 callersFunctionfindAfterNextTick
( wrapper: VueWrapper<any>, selector: string )
tests/find.spec.ts:133
↓ 1 callersFunctionfindAllVNodes
( vnode: VNode, selector: FindAllComponentsSelector )
src/utils/find.ts:120
↓ 1 callersFunctionfn
()
tests/setValue.spec.ts:283
↓ 1 callersFunctiongenerateModifiers
* Groups modifiers into lists
src/createDomEvent.ts:32
↓ 1 callersFunctiongetDirectivesFromStubs
( stubs: Stubs )
src/utils.ts:207
↓ 1 callersFunctiongetEventProperties
(eventParams: EventParams)
src/createDomEvent.ts:66
↓ 1 callersFunctiongetGlobalThis
()
src/utils.ts:241
next →1–100 of 316, ranked by callers