Socket
Socket
Sign inDemoInstall

@testing-library/user-event

Package Overview
Dependencies
Maintainers
16
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/user-event - npm Package Compare versions

Comparing version 14.0.0-beta.8 to 14.0.0-beta.9

dist/types/event/behavior/click.d.ts

3

dist/types/keyboard/shared/fireChangeForInputTimeIfValid.d.ts

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

export declare function fireChangeForInputTimeIfValid(el: HTMLInputElement & {
import { Config } from '../../setup';
export declare function fireChangeForInputTimeIfValid(config: Config, el: HTMLInputElement & {
type: 'time';
}, prevValue: unknown, timeNewEntry: string): void;

@@ -1,2 +0,3 @@

import { PointerCoords, MouseButton } from '../utils';
import { PointerCoords } from '../event';
import { MouseButton } from '../utils';
/**

@@ -3,0 +4,0 @@ * @internal Do not create/alter this by yourself as this type might be subject to changes.

@@ -0,1 +1,2 @@

import type { bindDispatchUIEvent } from '../event';
import type * as userEventApi from './api';

@@ -10,2 +11,3 @@ import { setupMain, setupSub } from './setup';

[Config]: Config;
dispatchUIEvent: ReturnType<typeof bindDispatchUIEvent>;
};

@@ -12,0 +14,0 @@ export declare type UserEvent = {

import { Options } from '../options';
import type { Instance, UserEvent } from './index';
import { Config } from './config';
export declare function createConfig(options?: Partial<Config>, defaults?: Required<Options>, node?: Node): Config;
/**

@@ -5,0 +6,0 @@ * Start a "session" with userEvent.

@@ -1,2 +0,2 @@

import type { Instance } from '../setup';
import { Instance } from '../setup';
export declare function clear(this: Instance, element: Element): Promise<void>;

@@ -1,2 +0,2 @@

import { fireEvent } from '@testing-library/dom';
import { Config } from '../../setup';
/**

@@ -7,3 +7,3 @@ * Change the value of an element as if it was changed as a result of a user input.

*/
export declare function editInputElement(element: HTMLInputElement | HTMLTextAreaElement, { newValue, newSelection, eventOverrides, }: {
export declare function editInputElement(config: Config, element: HTMLInputElement | HTMLTextAreaElement, { newValue, newSelection, eventOverrides, }: {
newValue: string;

@@ -14,5 +14,3 @@ newSelection: {

};
eventOverrides: Partial<Parameters<typeof fireEvent>[1]> & {
[k: string]: unknown;
};
eventOverrides: InputEventInit;
}): void;

@@ -1,2 +0,3 @@

export declare function prepareInput(data: string, element: Element, inputType?: string): {
import { Config } from '../../setup';
export declare function prepareInput(config: Config, data: string, element: Element, inputType?: string): {
commit: () => void;

@@ -3,0 +4,0 @@ getNewValue?: undefined;

@@ -30,2 +30,3 @@ export * from './click/isClickableInput';

export * from './keyDef/readNextDescriptor';
export * from './misc/cloneEvent';
export * from './misc/eventWrapper';

@@ -42,3 +43,2 @@ export * from './misc/findClosest';

export * from './pointer/cssPointerEvents';
export * from './pointer/firePointerEvents';
export * from './pointer/mouseButtons';

@@ -1,17 +0,5 @@

import { keyboardKey, keyboardState } from '../../keyboard/types';
export declare function getKeyEventProps(keyDef: keyboardKey, state: keyboardState): {
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
modifierAltGraph: boolean;
modifierCapsLock: boolean;
modifierFn: boolean;
modifierFnLock: boolean;
modifierNumLock: boolean;
modifierScrollLock: boolean;
modifierSymbol: boolean;
modifierSymbolLock: boolean;
import { keyboardKey } from '../../keyboard/types';
export declare function getKeyEventProps(keyDef: keyboardKey): {
key: string | undefined;
code: string | undefined;
};
{
"name": "@testing-library/user-event",
"version": "14.0.0-beta.8",
"version": "14.0.0-beta.9",
"description": "Fire events the same way the user does",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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