@vue/test-utils
Advanced tools
Comparing version 2.0.0-rc.16 to 2.0.0-rc.17
@@ -5,5 +5,6 @@ import BaseWrapper from './baseWrapper'; | ||
import { FindAllComponentsSelector, FindComponentSelector } from './types'; | ||
import { VueWrapper } from './vueWrapper'; | ||
import type { createWrapper, VueWrapper } from './vueWrapper'; | ||
export declare class DOMWrapper<ElementType extends Element> extends BaseWrapper<ElementType> implements WrapperLike { | ||
constructor(element: ElementType); | ||
private createVueWrapper; | ||
constructor(element: ElementType, createVueWrapper: typeof createWrapper); | ||
isVisible(): boolean; | ||
@@ -10,0 +11,0 @@ html(): string; |
@@ -8,3 +8,3 @@ import { FunctionalComponent, ComponentPublicInstance, ComponentOptionsWithObjectProps, ComponentOptionsWithArrayProps, ComponentOptionsWithoutProps, ExtractPropTypes, VNodeProps, ComponentOptionsMixin, DefineComponent, MethodOptions, AllowedComponentProps, ComponentCustomProps, ExtractDefaultPropTypes, EmitsOptions, ComputedOptions, ComponentPropsOptions } from 'vue'; | ||
registerHooks(keys: string[]): void; | ||
}, options?: MountingOptions<any>): VueWrapper<ComponentPublicInstance<V>>; | ||
}, options?: MountingOptions<any> & Record<string, any>): VueWrapper<ComponentPublicInstance<V>>; | ||
export declare function mount<V, P>(originalComponent: { | ||
@@ -14,6 +14,6 @@ new (...args: any[]): V; | ||
registerHooks(keys: string[]): void; | ||
}, options?: MountingOptions<P & PublicProps>): VueWrapper<ComponentPublicInstance<V>>; | ||
export declare function mount<Props, E extends EmitsOptions = {}>(originalComponent: FunctionalComponent<Props, E>, options?: MountingOptions<Props & PublicProps>): VueWrapper<ComponentPublicInstance<Props>>; | ||
export declare function mount<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, PP = PublicProps, Props = Readonly<ExtractPropTypes<PropsOrPropOptions>>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>>(component: DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>, options?: MountingOptions<Partial<Defaults> & Omit<Props & PublicProps, keyof Defaults>, D>): VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>>>; | ||
export declare function mount<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string>(componentOptions: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, E, Mixin, Extends, EE>, options?: MountingOptions<Props & PublicProps, D>): VueWrapper<ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>>; | ||
}, options?: MountingOptions<P & PublicProps> & Record<string, any>): VueWrapper<ComponentPublicInstance<V>>; | ||
export declare function mount<Props, E extends EmitsOptions = {}>(originalComponent: FunctionalComponent<Props, E>, options?: MountingOptions<Props & PublicProps> & Record<string, any>): VueWrapper<ComponentPublicInstance<Props>>; | ||
export declare function mount<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, PP = PublicProps, Props = Readonly<ExtractPropTypes<PropsOrPropOptions>>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>>(component: DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>, options?: MountingOptions<Partial<Defaults> & Omit<Props & PublicProps, keyof Defaults>, D> & Record<string, any>): VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>>>; | ||
export declare function mount<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string>(componentOptions: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, E, Mixin, Extends, EE>, options?: MountingOptions<Props & PublicProps, D>): VueWrapper<ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>> & Record<string, any>; | ||
export declare function mount<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string, Props extends Readonly<{ | ||
@@ -20,0 +20,0 @@ [key in PropNames]?: any; |
@@ -1,2 +0,2 @@ | ||
import { VNodeTypes, ConcreteComponent, DefineComponent, ComponentPropsOptions } from 'vue'; | ||
import { VNodeTypes, ConcreteComponent, ComponentPropsOptions } from 'vue'; | ||
import { Stubs } from './types'; | ||
@@ -11,3 +11,3 @@ interface StubOptions { | ||
export declare const addToDoNotStubComponents: (type: ConcreteComponent) => WeakSet<ConcreteComponent<{}, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>; | ||
export declare const createStub: ({ name, propsDeclaration, renderStubDefaultSlot }: StubOptions) => DefineComponent<ComponentPropsOptions<{ | ||
export declare const createStub: ({ name, propsDeclaration, renderStubDefaultSlot }: StubOptions) => import("vue").DefineComponent<ComponentPropsOptions<{ | ||
[x: string]: unknown; | ||
@@ -14,0 +14,0 @@ }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown[] & { |
@@ -8,2 +8,2 @@ import type { ComponentOptions } from 'vue'; | ||
export declare function unwrapLegacyVueExtendComponent<T>(selector: T): T | ComponentOptions; | ||
export declare function isLegacyFunctionalComponent(component: unknown): unknown; | ||
export declare function isLegacyFunctionalComponent(component: unknown): boolean; |
{ | ||
"name": "@vue/test-utils", | ||
"version": "2.0.0-rc.16", | ||
"version": "2.0.0-rc.17", | ||
"license": "MIT", | ||
@@ -15,37 +15,37 @@ "main": "dist/vue-test-utils.cjs.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"@babel/core": "^7.16.0", | ||
"@babel/preset-env": "^7.16.4", | ||
"@babel/types": "^7.15.4", | ||
"@rollup/plugin-commonjs": "^21.0.0", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.0.5", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
"@rollup/plugin-replace": "^3.0.0", | ||
"@types/jest": "27.0.2", | ||
"@types/node": "16.10.4", | ||
"@types/jest": "27.0.3", | ||
"@types/node": "16.11.9", | ||
"@types/pretty": "^2.0.0", | ||
"@vue/babel-plugin-jsx": "^1.1.0", | ||
"@vue/compat": "3.2.20", | ||
"@vue/compiler-dom": "3.2.20", | ||
"@vue/compiler-sfc": "3.2.20", | ||
"@vue/babel-plugin-jsx": "^1.1.1", | ||
"@vue/compat": "3.2.22", | ||
"@vue/compiler-dom": "3.2.22", | ||
"@vue/compiler-sfc": "3.2.22", | ||
"babel-jest": "^26.6.3", | ||
"babel-preset-jest": "^27.2.0", | ||
"husky": "^7.0.1", | ||
"husky": "^7.0.4", | ||
"jest": "25.5.4", | ||
"jsdom": "^18.0.0", | ||
"jsdom": "^18.1.0", | ||
"jsdom-global": "^3.0.2", | ||
"lint-staged": "^11.2.3", | ||
"lint-staged": "^11.2.6", | ||
"prettier": "^2.4.1", | ||
"pretty": "^2.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"rollup": "^2.58.0", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"rollup": "^2.60.0", | ||
"rollup-plugin-typescript2": "^0.31.0", | ||
"ts-jest": "25.3.1", | ||
"tslib": "2.3.1", | ||
"typescript": "4.4.3", | ||
"typescript": "4.5.2", | ||
"vitepress": "^0.18.1", | ||
"vue": "3.2.20", | ||
"vue": "3.2.22", | ||
"vue-class-component": "^8.0.0-rc.1", | ||
"vue-jest": "^5.0.0-alpha.10", | ||
"vue-router": "^4.0.11", | ||
"vue-tsc": "0.28.3", | ||
"vue-router": "^4.0.12", | ||
"vue-tsc": "0.29.5", | ||
"vuex": "^4.0.2" | ||
@@ -52,0 +52,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1422181
31
34911