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.4 to 14.1.0

2

dist/types/document/index.d.ts

@@ -8,4 +8,4 @@ declare const isPrepared: unique symbol;

export declare function prepareDocument(document: Document): void;
export { getUIValue, setUIValue, startTrackValue, endTrackValue } from './value';
export { getUIValue, setUIValue, startTrackValue, endTrackValue, clearInitialValue, } from './value';
export { getUISelection, setUISelection } from './selection';
export type { UISelectionRange } from './selection';

@@ -14,3 +14,4 @@ declare type anyFunc = (...a: any[]) => any;

realArgs?: ImplReturn<ElementType[PropName]>;
then?: () => void;
}): void;
export {};

@@ -18,3 +18,3 @@ declare const UIValue: unique symbol;

export declare function getUIValue(element: HTMLInputElement | HTMLTextAreaElement): string;
export declare function setInitialValue(element: HTMLInputElement | HTMLTextAreaElement): void;
export declare function clearInitialValue(element: HTMLInputElement | HTMLTextAreaElement): void;
export declare function getInitialValue(element: HTMLInputElement | HTMLTextAreaElement): string | undefined;

@@ -21,0 +21,0 @@ export declare function startTrackValue(element: HTMLInputElement | HTMLTextAreaElement): void;

@@ -109,2 +109,8 @@ import type { keyboardKey } from './keyboard/types';

writeToClipboard?: boolean;
/**
* A function to be called internally to advance your fake timers (if applicable)
*
* @example jest.advanceTimersByTime
*/
advanceTimers?: ((delay: number) => Promise<void>) | ((delay: number) => void);
}

@@ -111,0 +117,0 @@ /**

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

export declare function wait(time?: number): Promise<void>;
import { Config } from '../../setup';
export declare function wait(config: Config): Promise<[void, void]> | undefined;
{
"name": "@testing-library/user-event",
"version": "14.0.4",
"version": "14.1.0",
"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