This commit is contained in:
2024-11-28 23:08:17 +01:00
parent 8895fde030
commit 0dda8e760c
16116 changed files with 2866428 additions and 71 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[];

11
node_modules/@vue/test-utils/dist/utils/isDeepRef.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import type { DeepRef } from '../types';
/**
* Checks if the given value is a DeepRef.
*
* For both arrays and objects, it will recursively check
* if any of their values is a Ref.
*
* @param {DeepRef<T> | unknown} r - The value to check.
* @returns {boolean} Returns true if the value is a DeepRef, false otherwise.
*/
export declare const isDeepRef: <T>(r: DeepRef<T> | unknown) => r is DeepRef<T>;

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
}