@vue/test-utils
Advanced tools
Comparing version 2.0.0-rc.9 to 2.0.0-rc.10
import type { TriggerOptions } from './createDomEvent'; | ||
import { DomEventName } from './constants/dom-event-types'; | ||
export default class BaseWrapper<ElementType extends Element> { | ||
@@ -15,5 +14,3 @@ private readonly wrapperElement; | ||
exists(): boolean; | ||
protected isDisabled: () => boolean; | ||
trigger(eventString: DomEventName, options?: TriggerOptions): Promise<void>; | ||
trigger(eventString: string, options?: TriggerOptions): Promise<void>; | ||
} |
@@ -5,3 +5,3 @@ import { ComponentPublicInstance } from 'vue'; | ||
import { DOMWrapper } from './domWrapper'; | ||
export interface GlobalConfigOptions { | ||
interface GlobalConfigOptions { | ||
global: Required<GlobalMountOptions>; | ||
@@ -8,0 +8,0 @@ plugins: { |
@@ -1,2 +0,1 @@ | ||
import { DomEventName } from './constants/dom-event-types'; | ||
declare const keyCodesByKeyName: { | ||
@@ -26,3 +25,3 @@ readonly backspace: 8; | ||
} | ||
declare function createDOMEvent(eventString: DomEventName | string, options?: TriggerOptions): Event & TriggerOptions; | ||
declare function createDOMEvent(eventString: String, options?: TriggerOptions): Event & TriggerOptions; | ||
export { TriggerOptions, createDOMEvent, keyCodesByKeyName, KeyName }; |
@@ -1,5 +0,8 @@ | ||
import { FunctionalComponent, ComponentPublicInstance, ComponentOptionsWithObjectProps, ComponentOptionsWithArrayProps, ComponentOptionsWithoutProps, ExtractPropTypes, VNodeProps, ComponentOptionsMixin, DefineComponent, MethodOptions, AllowedComponentProps, ComponentCustomProps, ExtractDefaultPropTypes, EmitsOptions, ComputedOptions, ComponentPropsOptions } from 'vue'; | ||
import { FunctionalComponent, ComponentPublicInstance, ComponentOptionsWithObjectProps, ComponentOptionsWithArrayProps, ComponentOptionsWithoutProps, ExtractPropTypes, WritableComputedOptions, ComponentPropsOptions, VNodeProps, ComponentOptionsMixin, DefineComponent, MethodOptions, AllowedComponentProps, ComponentCustomProps, ExtractDefaultPropTypes } from 'vue'; | ||
import { MountingOptions } from './types'; | ||
import { VueWrapper } from './vueWrapper'; | ||
declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps; | ||
export declare type ComputedOptions = Record<string, ((ctx?: any) => any) | WritableComputedOptions<any>>; | ||
export declare type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>; | ||
export declare type EmitsOptions = ObjectEmitsOptions | string[]; | ||
export declare function mount<V>(originalComponent: { | ||
@@ -6,0 +9,0 @@ new (...args: any[]): V; |
@@ -6,6 +6,5 @@ import { ComponentOptions } from 'vue'; | ||
propsDeclaration?: any; | ||
renderStubDefaultSlot?: boolean; | ||
} | ||
export declare const createStub: ({ name, propsDeclaration, renderStubDefaultSlot }: StubOptions) => ComponentOptions; | ||
export declare function stubComponents(stubs?: Record<any, any>, shallow?: boolean, renderStubDefaultSlot?: boolean): void; | ||
export declare const createStub: ({ name, props, propsDeclaration }: StubOptions) => ComponentOptions; | ||
export declare function stubComponents(stubs?: Record<any, any>, shallow?: boolean): void; | ||
export {}; |
import { GlobalMountOptions } from './types'; | ||
export declare function mergeGlobalProperties(mountGlobal?: GlobalMountOptions): Required<GlobalMountOptions>; | ||
export declare const isObject: (obj: unknown) => obj is Record<string, any>; | ||
export declare function mergeGlobalProperties(configGlobal?: GlobalMountOptions, mountGlobal?: GlobalMountOptions): Required<GlobalMountOptions>; | ||
export declare const mergeDeep: (target: Record<string, any>, source: Record<string, any>) => Record<string, any>; | ||
@@ -5,0 +4,0 @@ export declare function isClassComponent(component: any): any; |
@@ -38,3 +38,2 @@ import { ComponentPublicInstance, App } from 'vue'; | ||
findAll<T extends Element>(selector: string): DOMWrapper<T>[]; | ||
isVisible(): boolean; | ||
setData(data: Record<string, any>): Promise<void>; | ||
@@ -41,0 +40,0 @@ setProps(props: Record<string, any>): Promise<void>; |
{ | ||
"name": "@vue/test-utils", | ||
"version": "2.0.0-rc.9", | ||
"version": "2.0.0-rc.10", | ||
"license": "MIT", | ||
@@ -23,9 +23,11 @@ "main": "dist/vue-test-utils.cjs.js", | ||
"@types/jest": "26.0.23", | ||
"@types/node": "15.12.4", | ||
"@types/node": "16.0.0", | ||
"@types/pretty": "^2.0.0", | ||
"@vue/compiler-dom": "^3.1.2", | ||
"@vue/compiler-sfc": "3.1.2", | ||
"@vue/babel-plugin-jsx": "^1.0.6", | ||
"@vue/compat": "^3.1.4", | ||
"@vue/compiler-dom": "^3.1.4", | ||
"@vue/compiler-sfc": "3.1.4", | ||
"babel-jest": "^26.6.3", | ||
"babel-preset-jest": "^27.0.1", | ||
"husky": "^6.0.0", | ||
"babel-preset-jest": "^27.0.6", | ||
"husky": "^7.0.0", | ||
"jest": "25.5.4", | ||
@@ -35,11 +37,11 @@ "jsdom": "^16.6.0", | ||
"lint-staged": "^11.0.0", | ||
"prettier": "^2.3.1", | ||
"prettier": "^2.3.2", | ||
"pretty": "^2.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"rollup": "^2.52.2", | ||
"rollup": "^2.52.7", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"ts-jest": "25.3.1", | ||
"typescript": "^4.3.4", | ||
"vitepress": "^0.15.4", | ||
"vue": "3.1.2", | ||
"typescript": "^4.3.5", | ||
"vitepress": "^0.15.6", | ||
"vue": "3.1.4", | ||
"vue-class-component": "^8.0.0-rc.1", | ||
@@ -59,4 +61,6 @@ "vue-jest": "^5.0.0-alpha.10", | ||
"scripts": { | ||
"test": "yarn jest --runInBand tests", | ||
"test:build": "yarn jest --runInBand tests -use-build", | ||
"test": "yarn jest --runInBand tests/", | ||
"test:compat": "yarn jest -c tests-compat/jest-compat.config.js --runInBand tests-compat/", | ||
"test:build": "yarn jest --runInBand tests/ -use-build", | ||
"test:compat:build": "yarn jest -c tests-compat/jest-compat.config.js --runInBand tests-compat/ -use-build", | ||
"tsd": "tsc -p test-dts/tsconfig.tsd.json", | ||
@@ -63,0 +67,0 @@ "build": "yarn rollup -c rollup.config.js", |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1403167
53
34513
4
35