@vue/test-utils
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -5,2 +5,3 @@ import { FunctionalComponent, ComponentPublicInstance, ComponentOptionsWithObjectProps, ComponentOptionsWithArrayProps, ComponentOptionsWithoutProps, ExtractPropTypes, VNodeProps, ComponentOptionsMixin, DefineComponent, MethodOptions, AllowedComponentProps, ComponentCustomProps, ExtractDefaultPropTypes, EmitsOptions, ComputedOptions, ComponentPropsOptions, Prop } from 'vue'; | ||
declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps; | ||
declare type ComponentMountingOptions<T> = T extends DefineComponent<infer PropsOrPropOptions, any, infer D, any, any> ? MountingOptions<Partial<ExtractDefaultPropTypes<PropsOrPropOptions>> & Omit<Readonly<ExtractPropTypes<PropsOrPropOptions>> & PublicProps, keyof ExtractDefaultPropTypes<PropsOrPropOptions>>, D> & Record<string, any> : MountingOptions<any>; | ||
export declare function mount<V>(originalComponent: { | ||
@@ -26,2 +27,3 @@ new (...args: any[]): V; | ||
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<T extends DefineComponent<any, any, any, any>>(component: T, options?: ComponentMountingOptions<T>): VueWrapper<InstanceType<T>>; | ||
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>; | ||
@@ -28,0 +30,0 @@ 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<{ |
@@ -17,2 +17,3 @@ import { App, ComponentCustomProperties, ComponentPublicInstance } from 'vue'; | ||
getCurrentComponent(): import("vue").ComponentInternalInstance; | ||
exists(): boolean; | ||
findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[]; | ||
@@ -29,3 +30,3 @@ findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[]; | ||
emitted<T = unknown>(): Record<string, T[]>; | ||
emitted<T = unknown>(eventName: string): undefined | T[]; | ||
emitted<T = unknown[]>(eventName: string): undefined | T[]; | ||
isVisible(): boolean; | ||
@@ -32,0 +33,0 @@ setData(data: Record<string, unknown>): Promise<void>; |
{ | ||
"name": "@vue/test-utils", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"license": "MIT", | ||
@@ -25,6 +25,6 @@ "main": "dist/vue-test-utils.cjs.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.18.5", | ||
"@babel/preset-env": "^7.17.12", | ||
"@babel/types": "^7.18.4", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@babel/core": "7.18.6", | ||
"@babel/preset-env": "7.18.6", | ||
"@babel/types": "7.18.6", | ||
"@rollup/plugin-commonjs": "^22.0.1", | ||
"@rollup/plugin-json": "^4.1.0", | ||
@@ -34,6 +34,6 @@ "@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/jest": "27.5.0", | ||
"@types/node": "17.0.42", | ||
"@types/node": "18.0.0", | ||
"@types/pretty": "^2.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.28.0", | ||
"@typescript-eslint/parser": "^5.28.0", | ||
"@typescript-eslint/eslint-plugin": "^5.30.3", | ||
"@typescript-eslint/parser": "^5.30.3", | ||
"@vue/babel-plugin-jsx": "^1.1.1", | ||
@@ -46,18 +46,18 @@ "@vue/compat": "3.2.37", | ||
"babel-preset-jest": "28.1.1", | ||
"eslint": "^8.17.0", | ||
"eslint": "^8.18.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"husky": "^8.0.1", | ||
"jest": "27.5.1", | ||
"jsdom": "^19.0.0", | ||
"jsdom": "^20.0.0", | ||
"jsdom-global": "^3.0.2", | ||
"lint-staged": "^13.0.1", | ||
"prettier": "^2.7.0", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"pretty": "^2.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"rollup": "^2.75.6", | ||
"rollup": "^2.75.7", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"ts-jest": "27.1.5", | ||
"tslib": "2.4.0", | ||
"typescript": "4.7.3", | ||
"typescript": "4.7.4", | ||
"vitepress": "^0.22.4", | ||
@@ -68,3 +68,3 @@ "vue": "3.2.37", | ||
"vue-router": "^4.0.16", | ||
"vue-tsc": "0.35.2", | ||
"vue-tsc": "0.38.2", | ||
"vuex": "^4.0.2" | ||
@@ -71,0 +71,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 not supported yet
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
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
1499333
36387