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

@wdio/utils

Package Overview
Dependencies
Maintainers
3
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/utils

A WDIO helper utility to provide several utility functions used across the project.

  • 9.0.0-alpha.64
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @wdio/utils?

The @wdio/utils package is part of the WebdriverIO ecosystem, which provides utility functions to enhance and simplify the development of automated testing scripts for web applications. It includes various helper functions and utilities that are used internally by other WebdriverIO packages but can also be useful in custom test scripts.

What are @wdio/utils's main functionalities?

Test Framework Adapters

This feature allows the integration of different test frameworks with WebdriverIO. The code sample demonstrates how to use the adapterFactory function to create an instance of a Jasmine test framework adapter.

const { adapterFactory } = require('@wdio/utils');
const JasmineAdapter = adapterFactory('jasmine');

Logger Utility

The Logger utility provides a way to create custom loggers for different parts of your test suite. The code sample shows how to create a logger and log an informational message.

const { getLogger } = require('@wdio/utils');
const logger = getLogger('myCustomLogger');
logger.info('This is an info message');

Test Hooks

This feature provides hooks that can be used to perform actions at various stages of the test lifecycle. The code sample illustrates how to define actions to be performed before and after a test.

const { testHook } = require('@wdio/utils');
testHook.before(() => console.log('Before test hook'));
testHook.after(() => console.log('After test hook'));

Other packages similar to @wdio/utils

Keywords

FAQs

Package last updated on 28 Mar 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

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