first commit

This commit is contained in:
Warunee Tamkoo 2023-09-06 14:51:44 +07:00
commit eb2f504652
32490 changed files with 5731109 additions and 0 deletions

View file

@ -0,0 +1,5 @@
import { ComponentPublicInstance } from 'vue';
import type { VueWrapper } from '../vueWrapper';
export declare function disableAutoUnmount(): void;
export declare function enableAutoUnmount(hook: (callback: () => void) => void): void;
export declare function trackInstance(wrapper: VueWrapper<ComponentPublicInstance>): void;

View file

@ -0,0 +1,2 @@
import * as vue from 'vue';
export declare function processSlot(source?: string, Vue?: typeof vue): (ctx?: {}) => any;

View file

@ -0,0 +1,3 @@
import { ComponentInternalInstance, VNodeTypes } from 'vue';
export declare const getComponentRegisteredName: (instance: ComponentInternalInstance | null, type: VNodeTypes) => string | null;
export declare const getComponentName: (instance: any | null, type: VNodeTypes) => string;

10
node_modules/@vue/test-utils/dist/utils/find.d.ts generated vendored Normal file
View file

@ -0,0 +1,10 @@
import { ComponentInternalInstance, VNode } from 'vue';
import { FindAllComponentsSelector } from '../types';
/**
* Detect whether a selector matches a VNode
* @param node
* @param selector
* @return {boolean | ((value: any) => boolean)}
*/
export declare function matches(node: VNode, rawSelector: FindAllComponentsSelector): boolean;
export declare function find(root: VNode, selector: FindAllComponentsSelector): ComponentInternalInstance[];

View file

@ -0,0 +1 @@
export declare function flushPromises(): Promise<unknown>;

View file

@ -0,0 +1,2 @@
import { VNode } from 'vue';
export declare function getRootNodes(vnode: VNode): Node[];

View file

@ -0,0 +1 @@
export declare function isElement(element: Node): element is Element;

View file

@ -0,0 +1,6 @@
/*!
* isElementVisible
* Adapted from https://github.com/testing-library/jest-dom
* Licensed under the MIT License.
*/
export declare function isElementVisible<T extends Element>(element: T): boolean;

View file

@ -0,0 +1 @@
export declare function matchName(target: string, sourceName: string): boolean;

View file

@ -0,0 +1 @@
export declare function stringifyNode(node: Node): string;

View file

@ -0,0 +1,8 @@
import type { ComponentOptions } from 'vue';
export declare function isLegacyExtendedComponent(component: unknown): component is {
(): Function;
super: Function;
options: ComponentOptions;
};
export declare function unwrapLegacyVueExtendComponent<T>(selector: T): T | ComponentOptions;
export declare function isLegacyFunctionalComponent(component: unknown): boolean;

16
node_modules/@vue/test-utils/dist/utils/vueShared.d.ts generated vendored Normal file
View file

@ -0,0 +1,16 @@
export declare const camelize: (str: string) => string;
export declare const capitalize: (str: string) => string;
export declare const hyphenate: (str: string) => string;
export declare const enum ShapeFlags {
ELEMENT = 1,
FUNCTIONAL_COMPONENT = 2,
STATEFUL_COMPONENT = 4,
TEXT_CHILDREN = 8,
ARRAY_CHILDREN = 16,
SLOTS_CHILDREN = 32,
TELEPORT = 64,
SUSPENSE = 128,
COMPONENT_SHOULD_KEEP_ALIVE = 256,
COMPONENT_KEPT_ALIVE = 512,
COMPONENT = 6
}