Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue/test-utils

Package Overview
Dependencies
Maintainers
5
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/test-utils - npm Package Compare versions

Comparing version 2.2.7 to 2.2.8

4

dist/constants/dom-events.d.ts

@@ -29,4 +29,4 @@ export type EventInterface = 'AnimationEvent' | 'AudioProcessingEvent' | 'BeforeInputEvent' | 'BeforeUnloadEvent' | 'BlobEvent' | 'CSSFontFaceLoadEvent' | 'ClipboardEvent' | 'CloseEvent' | 'CompositionEvent' | 'CustomEvent' | 'DOMTransactionEvent' | 'DeviceLightEvent' | 'DeviceMotionEvent' | 'DeviceOrientationEvent' | 'DeviceProximityEvent' | 'DragEvent' | 'EditingBeforeInputEvent' | 'ErrorEvent' | 'Event' | 'FetchEvent' | 'FocusEvent' | 'GamepadEvent' | 'HashChangeEvent' | 'IDBVersionChangeEvent' | 'InputEvent' | 'KeyboardEvent' | 'MediaStreamEvent' | 'MessageEvent' | 'MouseEvent' | 'MutationEvent' | 'OfflineAudioCompletionEvent' | 'OverconstrainedError' | 'PageTransitionEvent' | 'PaymentRequestUpdateEvent' | 'PointerEvent' | 'PopStateEvent' | 'ProgressEvent' | 'RTCDataChannelEvent' | 'RTCIdentityErrorEvent' | 'RTCIdentityEvent' | 'RTCPeerConnectionIceEvent' | 'RelatedEvent' | 'SVGEvent' | 'SVGZoomEvent' | 'SensorEvent' | 'StorageEvent' | 'TimeEvent' | 'TouchEvent' | 'TrackEvent' | 'TransitionEvent' | 'UIEvent' | 'UserProximityEvent' | 'WebGLContextEvent' | 'WheelEvent';

export type KeyName = keyof typeof keyCodesByKeyName;
export type Modifier = typeof systemKeyModifiers[number] | typeof mouseKeyModifiers[number];
export type DomEventNameWithModifier = DomEventName | `${DomEventName}.${typeof systemKeyModifiers[number]}` | `click.${typeof mouseKeyModifiers[number]}` | `click.${typeof systemKeyModifiers[number]}.${typeof mouseKeyModifiers[number]}` | `${'keydown' | 'keyup'}.${keyof typeof keyCodesByKeyName}` | `${'keydown' | 'keyup'}.${typeof systemKeyModifiers[number]}.${keyof typeof keyCodesByKeyName}`;
export type Modifier = (typeof systemKeyModifiers)[number] | (typeof mouseKeyModifiers)[number];
export type DomEventNameWithModifier = DomEventName | `${DomEventName}.${(typeof systemKeyModifiers)[number]}` | `click.${(typeof mouseKeyModifiers)[number]}` | `click.${(typeof systemKeyModifiers)[number]}.${(typeof mouseKeyModifiers)[number]}` | `${'keydown' | 'keyup'}.${keyof typeof keyCodesByKeyName}` | `${'keydown' | 'keyup'}.${(typeof systemKeyModifiers)[number]}.${keyof typeof keyCodesByKeyName}`;
declare const domEvents: {

@@ -33,0 +33,0 @@ readonly abort: {

@@ -24,3 +24,3 @@ import { Component, ComponentOptions, Directive, Plugin, AppConfig, VNode, VNodeProps, FunctionalComponent, ComponentInternalInstance } from 'vue';

* Overrides component's default data. Must be a function.
* @see https://next.vue-test-utils.vuejs.org/api/#data
* @see https://test-utils.vuejs.org/api/#data
*/

@@ -30,3 +30,3 @@ data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any;

* Sets component props when mounted.
* @see https://next.vue-test-utils.vuejs.org/api/#props
* @see https://test-utils.vuejs.org/api/#props
*/

@@ -40,3 +40,3 @@ props?: (RawProps & Props) | ({} extends Props ? null : never);

* Sets component attributes when mounted.
* @see https://next.vue-test-utils.vuejs.org/api/#attrs
* @see https://test-utils.vuejs.org/api/#attrs
*/

@@ -46,3 +46,3 @@ attrs?: Record<string, unknown>;

* Provide values for slots on a component.
* @see https://next.vue-test-utils.vuejs.org/api/#slots
* @see https://test-utils.vuejs.org/api/#slots
*/

@@ -59,3 +59,3 @@ slots?: SlotDictionary & {

* Can be a valid CSS selector, or an Element connected to the document.
* @see https://next.vue-test-utils.vuejs.org/api/#attachto
* @see https://test-utils.vuejs.org/api/#attachto
*/

@@ -66,3 +66,3 @@ attachTo?: HTMLElement | string;

* @default false
* @see https://next.vue-test-utils.vuejs.org/api/#slots
* @see https://test-utils.vuejs.org/api/#slots
*/

@@ -76,3 +76,3 @@ shallow?: boolean;

* Installs plugins on the component.
* @see https://next.vue-test-utils.vuejs.org/api/#global-plugins
* @see https://test-utils.vuejs.org/api/#global-plugins
*/

@@ -87,3 +87,3 @@ plugins?: (Plugin | [Plugin, ...any[]])[];

* Applies a mixin for components under testing.
* @see https://next.vue-test-utils.vuejs.org/api/#global-mixins
* @see https://test-utils.vuejs.org/api/#global-mixins
*/

@@ -95,3 +95,3 @@ mixins?: ComponentOptions[];

* Vue's native properties such as $root, $children, etc.
* @see https://next.vue-test-utils.vuejs.org/api/#global-mocks
* @see https://test-utils.vuejs.org/api/#global-mocks
*/

@@ -101,3 +101,3 @@ mocks?: Record<string, any>;

* Provides data to be received in a setup function via `inject`.
* @see https://next.vue-test-utils.vuejs.org/api/#global-provide
* @see https://test-utils.vuejs.org/api/#global-provide
*/

@@ -107,3 +107,3 @@ provide?: Record<any, any>;

* Registers components globally for components under testing.
* @see https://next.vue-test-utils.vuejs.org/api/#global-components
* @see https://test-utils.vuejs.org/api/#global-components
*/

@@ -113,3 +113,3 @@ components?: Record<string, Component | object>;

* Registers a directive globally for components under testing
* @see https://next.vue-test-utils.vuejs.org/api/#global-directives
* @see https://test-utils.vuejs.org/api/#global-directives
*/

@@ -120,3 +120,3 @@ directives?: Record<string, Directive>;

* @default "{ transition: true, 'transition-group': true }"
* @see https://next.vue-test-utils.vuejs.org/api/#global-stubs
* @see https://test-utils.vuejs.org/api/#global-stubs
*/

@@ -128,3 +128,3 @@ stubs?: Stubs;

* @default false
* @see https://next.vue-test-utils.vuejs.org/api/#global-renderstubdefaultslot
* @see https://test-utils.vuejs.org/api/#global-renderstubdefaultslot
*/

@@ -131,0 +131,0 @@ renderStubDefaultSlot?: boolean;

@@ -1,4 +0,3 @@

import { ComponentInternalInstance } from '@vue/runtime-core';
import { VNodeTypes } from 'vue';
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;
{
"name": "@vue/test-utils",
"version": "2.2.7",
"version": "2.2.8",
"license": "MIT",

@@ -24,2 +24,5 @@ "main": "dist/vue-test-utils.cjs.js",

],
"dependencies": {
"js-beautify": "1.14.6"
},
"devDependencies": {

@@ -30,26 +33,24 @@ "@rollup/plugin-commonjs": "24.0.0",

"@rollup/plugin-replace": "5.0.2",
"@rollup/plugin-typescript": "10.0.1",
"@rollup/plugin-typescript": "11.0.0",
"@types/js-beautify": "1.13.3",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.48.0",
"@typescript-eslint/eslint-plugin": "5.48.2",
"@typescript-eslint/parser": "5.48.2",
"@vitejs/plugin-vue": "4.0.0",
"@vitejs/plugin-vue-jsx": "3.0.0",
"@vitest/coverage-c8": "0.26.3",
"@vitest/coverage-c8": "0.28.1",
"@vue/compat": "3.2.45",
"@vue/compiler-dom": "3.2.45",
"@vue/compiler-sfc": "3.2.45",
"@vue/runtime-core": "3.2.45",
"c8": "7.12.0",
"eslint": "8.31.0",
"eslint": "8.32.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.3",
"js-beautify": "1.14.6",
"jsdom": "20.0.3",
"jsdom": "21.0.0",
"jsdom-global": "3.0.2",
"lint-staged": "13.1.0",
"prettier": "2.8.1",
"prettier": "2.8.3",
"reflect-metadata": "0.1.13",
"rollup": "3.9.1",
"rollup": "3.10.0",
"tslib": "2.4.1",

@@ -60,10 +61,11 @@ "typescript": "4.9.4",

"vitepress": "0.22.4",
"vitest": "0.26.3",
"vitest": "0.28.1",
"vue": "3.2.45",
"vue-class-component": "8.0.0-rc.1",
"vue-router": "4.1.6",
"vue-tsc": "1.0.20",
"vue-tsc": "1.0.24",
"vuex": "4.1.0"
},
"peerDependencies": {
"@vue/compiler-dom": "^3.0.1",
"vue": "^3.0.1"

@@ -70,0 +72,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc