Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

vitest-browser-utils

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

vitest-browser-utils

Utilities for testing components with Vitest

unpublished
latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
0
Created
Source

vitest-browser-utils

Useful utilities for component testing in Vitest Browser Mode.

Requires vitest and @vitest/browser 2.1.0 or higher.

// the same as page.elementLocator but without interactive methods
function getElementLocatorSelectors(element: Element): LocatorSelectors

// pretty print element or elements to the console
function debug(
  el?: Element | Locator | null | (Element | Locator)[],
  maxLength?: number,
  options?: PrettyFormatOptions,
): void

// generate pretty string
function prettyDOM(
  dom: Element | Locator | undefined | null,
  maxLength?: number,
  prettyFormatOptions?: PrettyFormatOptions,
): string

Special thanks

  • @testing-library/dom

FAQs

Package last updated on 07 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts